diff --git a/.changeset/big-cooks-help.md b/.changeset/big-cooks-help.md new file mode 100644 index 0000000000000..82eb6971c7656 --- /dev/null +++ b/.changeset/big-cooks-help.md @@ -0,0 +1,6 @@ +--- +"@omnigraph/openapi": patch +--- + +When a custom mime type provided in `operationHeaders`, it sets all the fields as generic `JSON` scalar. +Fixes https://github.com/ardatan/graphql-mesh/issues/4460 diff --git a/packages/loaders/openapi/src/getJSONSchemaOptionsFromOpenAPIOptions.ts b/packages/loaders/openapi/src/getJSONSchemaOptionsFromOpenAPIOptions.ts index df4b85e78198f..81c0f176657d9 100644 --- a/packages/loaders/openapi/src/getJSONSchemaOptionsFromOpenAPIOptions.ts +++ b/packages/loaders/openapi/src/getJSONSchemaOptionsFromOpenAPIOptions.ts @@ -432,7 +432,7 @@ export async function getJSONSchemaOptionsFromOpenAPIOptions( } for (const contentKey in responseObj.content) { - if (!mimeTypes.includes(contentKey)) { + if (!mimeTypes.some(mimeType => mimeType.includes(contentKey))) { continue; } schemaObj = responseObj.content[contentKey].schema as any; diff --git a/packages/loaders/openapi/tests/__snapshots__/mime-type-with-version.test.ts.snap b/packages/loaders/openapi/tests/__snapshots__/mime-type-with-version.test.ts.snap new file mode 100644 index 0000000000000..0e4987bd8d432 --- /dev/null +++ b/packages/loaders/openapi/tests/__snapshots__/mime-type-with-version.test.ts.snap @@ -0,0 +1,2337 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`MIME Type with Version generates the schema correctly 1`] = ` +"schema @transport(subgraph: "test", kind: "rest", location: "https://app.orbit.love/api/v1", headers: "{\\"accept\\":\\"application/json;v=2\\"}") { + query: Query + mutation: Mutation +} + +directive @example(subgraph: String, value: ObjMap) repeatable on FIELD_DEFINITION | OBJECT | INPUT_OBJECT | ENUM | SCALAR + +directive @oneOf on OBJECT | INTERFACE | INPUT_OBJECT + +directive @statusCodeTypeName(subgraph: String, typeName: String, statusCode: ID) repeatable on UNION + +directive @resolveRootField(subgraph: String, field: String) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION + +directive @enum(subgraph: String, value: String) on ENUM_VALUE + +directive @resolveRoot(subgraph: String) on FIELD_DEFINITION + +directive @typescript(subgraph: String, type: String) on SCALAR | ENUM + +directive @httpOperation(subgraph: String, path: String, operationSpecificHeaders: ObjMap, httpMethod: HTTPMethod, isBinary: Boolean, requestBaseBody: ObjMap, queryParamArgMap: ObjMap, queryStringOptionsByParam: ObjMap, jsonApiFields: Boolean) on FIELD_DEFINITION + +directive @transport(subgraph: String, kind: String, location: String, headers: ObjMap, queryStringOptions: ObjMap, queryParams: ObjMap) on OBJECT + +type Query { + """Get info about the current user""" + user: user_200_response @httpOperation(subgraph: "test", path: "/user", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """List activities for a workspace""" + workspace_slug_activities( + workspace_slug: String! + affiliation: queryInput_workspace_slug_activities_affiliation + """ + The list of tags to filter against. Separate tags with \`,\` to do an intersection (AND), or with \`|\` to do a union (OR) + """ + member_tags: String + """ + The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like \`23\` would include levels 2 and 3. \`n\` is for members with no orbit level. + """ + orbit: String + activity_type: queryInput_workspace_slug_activities_activity_type + identity: queryInput_workspace_slug_activities_identity + """ + Comma separated list of companies. The union (OR) of companies is applied. + """ + company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """ + Comma separated list of job titles. The union (OR) of job titles is applied. + """ + title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Comma separated list of regions. The union (OR) of regions is applied.""" + regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """ + Comma separated list of countries. The union (OR) of countries is applied. + """ + countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Comma separated list of cities. The union (OR) of cities is applied.""" + cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Filter activities after this date. Format: YYYY-MM-DD.""" + start_date: String + """Filter activities before this date. Format: YYYY-MM-DD.""" + end_date: String + """ + Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days. + """ + relative: String + page: String + direction: queryInput_workspace_slug_activities_direction + items: queryInput_workspace_slug_activities_items + sort: queryInput_workspace_slug_activities_sort + """Deprecated in favor of the activity_type parameter.""" + type: String + ): workspace_slug_activities_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/activities", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"affiliation\\":\\"affiliation\\",\\"member_tags\\":\\"member_tags\\",\\"orbit\\":\\"orbit\\",\\"activity_type\\":\\"activity_type\\",\\"identity\\":\\"identity\\",\\"company[]\\":\\"company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"title[]\\":\\"title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"regions[]\\":\\"regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"countries[]\\":\\"countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"cities[]\\":\\"cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"start_date\\":\\"start_date\\",\\"end_date\\":\\"end_date\\",\\"relative\\":\\"relative\\",\\"page\\":\\"page\\",\\"direction\\":\\"direction\\",\\"items\\":\\"items\\",\\"sort\\":\\"sort\\",\\"type\\":\\"type\\"}") + """Get an activity in the workspace""" + workspace_slug_activities_by_id(workspace_slug: String!, id: String!): workspace_slug_activities_by_id_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/activities/{args.id}", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """List all activity types for a workspace""" + workspace_slug_activity_types(workspace_slug: String!): workspace_slug_activity_types_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/activity_types", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """List activities for a member""" + workspace_slug_members_by_member_slug_activities( + workspace_slug: String! + member_slug: String! + page: String + direction: queryInput_workspace_slug_members_by_member_slug_activities_direction + items: queryInput_workspace_slug_members_by_member_slug_activities_items + sort: queryInput_workspace_slug_members_by_member_slug_activities_sort + activity_type: String + """Deprecated in favor of the activity_type parameter.""" + type: String + ): workspace_slug_members_by_member_slug_activities_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/activities", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"page\\":\\"page\\",\\"direction\\":\\"direction\\",\\"items\\":\\"items\\",\\"sort\\":\\"sort\\",\\"activity_type\\":\\"activity_type\\",\\"type\\":\\"type\\"}") + """Get the member's notes""" + workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, page: String): workspace_slug_members_by_member_slug_notes_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/notes", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"page\\":\\"page\\"}") + """List members in a workspace""" + workspace_slug_members( + workspace_slug: String! + affiliation: queryInput_workspace_slug_members_affiliation + """ + The list of tags to filter against. Separate tags with \`,\` to do an intersection (AND), or with \`|\` to do a union (OR) + """ + member_tags: String + """ + The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like \`23\` would include levels 2 and 3. \`n\` is for members with no orbit level. + """ + orbit: String + activity_type: queryInput_workspace_slug_members_activity_type + identity: queryInput_workspace_slug_members_identity + """ + Comma separated list of companies. The union (OR) of companies is applied. + """ + company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """ + Comma separated list of job titles. The union (OR) of job titles is applied. + """ + title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Comma separated list of regions. The union (OR) of regions is applied.""" + regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """ + Comma separated list of countries. The union (OR) of countries is applied. + """ + countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Comma separated list of cities. The union (OR) of cities is applied.""" + cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_: String + """Filter activities after this date. Format: YYYY-MM-DD.""" + start_date: String + """Filter activities before this date. Format: YYYY-MM-DD.""" + end_date: String + """ + Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days. + """ + relative: String + query: String + page: String + direction: queryInput_workspace_slug_members_direction + items: queryInput_workspace_slug_members_items + activities_count_min: String + activities_count_max: String + sort: queryInput_workspace_slug_members_sort + """Deprecated in favor of the activity_type parameter.""" + type: String + ): workspace_slug_members_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"affiliation\\":\\"affiliation\\",\\"member_tags\\":\\"member_tags\\",\\"orbit\\":\\"orbit\\",\\"activity_type\\":\\"activity_type\\",\\"identity\\":\\"identity\\",\\"company[]\\":\\"company_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"title[]\\":\\"title_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"regions[]\\":\\"regions_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"countries[]\\":\\"countries_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"cities[]\\":\\"cities_LEFT_SQUARE_BRACE__RIGHT_SQUARE_BRACE_\\",\\"start_date\\":\\"start_date\\",\\"end_date\\":\\"end_date\\",\\"relative\\":\\"relative\\",\\"query\\":\\"query\\",\\"page\\":\\"page\\",\\"direction\\":\\"direction\\",\\"items\\":\\"items\\",\\"activities_count_min\\":\\"activities_count_min\\",\\"activities_count_max\\":\\"activities_count_max\\",\\"sort\\":\\"sort\\",\\"type\\":\\"type\\"}") + """Get a member""" + workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): workspace_slug_members_by_member_slug_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """ + Provide a source and one of username/uid/email params to return a member with that identity, if one exists. Common values for source include github, twitter, and email. + """ + workspace_slug_members_find( + workspace_slug: String! + source: String + source_host: String + uid: String + username: String + email: String + """Deprecated, please use source=github and username= instead""" + github: String + ): workspace_slug_members_find_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/find", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"source\\":\\"source\\",\\"source_host\\":\\"source_host\\",\\"uid\\":\\"uid\\",\\"username\\":\\"username\\",\\"email\\":\\"email\\",\\"github\\":\\"github\\"}") + """List all notes for all members in a workspace""" + workspace_slug_notes(workspace_slug: String!): JSON @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/notes", httpMethod: GET) + """List member activities in an organization""" + workspace_slug_organizations_by_organization_id_activities(workspace_slug: String!, organization_id: String!, page: String, direction: queryInput_workspace_slug_organizations_by_organization_id_activities_direction, items: queryInput_workspace_slug_organizations_by_organization_id_activities_items, sort: queryInput_workspace_slug_organizations_by_organization_id_activities_sort, activity_type: queryInput_workspace_slug_organizations_by_organization_id_activities_activity_type): workspace_slug_organizations_by_organization_id_activities_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/organizations/{args.organization_id}/activities", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"page\\":\\"page\\",\\"direction\\":\\"direction\\",\\"items\\":\\"items\\",\\"sort\\":\\"sort\\",\\"activity_type\\":\\"activity_type\\"}") + """List members in an organization""" + workspace_slug_organizations_by_organization_id_members(workspace_slug: String!, organization_id: String!, page: String, items: queryInput_workspace_slug_organizations_by_organization_id_members_items): workspace_slug_organizations_by_organization_id_members_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/organizations/{args.organization_id}/members", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"page\\":\\"page\\",\\"items\\":\\"items\\"}") + """List organizations in a workspace""" + workspace_slug_organizations(workspace_slug: String!, query: String, page: String, direction: queryInput_workspace_slug_organizations_direction, items: queryInput_workspace_slug_organizations_items, sort: queryInput_workspace_slug_organizations_sort): workspace_slug_organizations_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/organizations", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"query\\":\\"query\\",\\"page\\":\\"page\\",\\"direction\\":\\"direction\\",\\"items\\":\\"items\\",\\"sort\\":\\"sort\\"}") + """Get an organization""" + workspace_slug_organizations_by_organization_id(workspace_slug: String!, organization_id: String!): workspace_slug_organizations_by_organization_id_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/organizations/{args.organization_id}", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """Get a workspace stats""" + workspace_slug_reports( + workspace_slug: String! + """Filter activities after this date. Format: YYYY-MM-DD.""" + start_date: String + """Filter activities before this date. Format: YYYY-MM-DD.""" + end_date: String + """ + Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days. + """ + relative: String + properties: String + activity_type: String + """Deprecated in favor of the activity_type parameter.""" + type: String + ): workspace_slug_reports_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/reports", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"start_date\\":\\"start_date\\",\\"end_date\\":\\"end_date\\",\\"relative\\":\\"relative\\",\\"properties\\":\\"properties\\",\\"activity_type\\":\\"activity_type\\",\\"type\\":\\"type\\"}") + """List webhooks in a workspace""" + workspace_slug_webhooks(workspace_slug: String!): workspace_slug_webhooks_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/webhooks", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """Get a webhook""" + workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): workspace_slug_webhooks_by_id_200_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/webhooks/{args.id}", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """Get all workspaces for the current user""" + workspaces: workspaces_200_response @httpOperation(subgraph: "test", path: "/workspaces", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET) + """Get a workspace""" + workspaces_by_workspace_slug( + workspace_slug: String! + """Include the number of members by Orbit Level in the attributes""" + include_orbit_level_counts: Boolean + ): workspaces_by_workspace_slug_200_response @httpOperation(subgraph: "test", path: "/workspaces/{args.workspace_slug}", operationSpecificHeaders: "{\\"accept\\":\\"application/json;v=2\\"}", httpMethod: GET, queryParamArgMap: "{\\"include_orbit_level_counts\\":\\"include_orbit_level_counts\\"}") +} + +type user_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"Ze1FV4\\",\\"type\\":\\"user\\",\\"attributes\\":{\\"name\\":\\"AnnaleeWolf\\",\\"updated_at\\":\\"2023-06-21T14:54:03.908Z\\",\\"created_at\\":\\"2023-06-21T14:54:03.908Z\\",\\"email\\":\\"carlie.jacobi@ryan.net\\"}}}") { + data: query_user_data +} + +type query_user_data { + id: String + type: String + attributes: query_user_data_attributes +} + +type query_user_data_attributes { + name: String + updated_at: DateTime + created_at: DateTime + email: EmailAddress +} + +""" +A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the \`date-time\` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. +""" +scalar DateTime + +""" +A field whose value conforms to the standard internet email address format as specified in HTML Spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address. +""" +scalar EmailAddress @specifiedBy(url: "https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address") + +type workspace_slug_activities_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"63rsLp\\",\\"type\\":\\"issue_activity\\",\\"attributes\\":{\\"action\\":\\"opened\\",\\"created_at\\":\\"2023-06-21T14:54:04.584Z\\",\\"key\\":\\"wayne/collene#55\\",\\"occurred_at\\":\\"2023-06-21T14:54:04.579Z\\",\\"updated_at\\":\\"2023-06-21T14:54:04.584Z\\",\\"type\\":\\"IssueActivity\\",\\"properties\\":{\\"github_issue\\":\\"wayne/collene/#55\\",\\"github_repository\\":\\"wayne/collene\\",\\"github_organization\\":\\"wayne\\"},\\"tags\\":[\\"channel:github\\",\\"github_organization:wayne\\",\\"github_repository:wayne/collene\\",\\"github_issue:wayne/collene/#55\\"],\\"orbit_url\\":\\"http://localhost:3000/avelinawiza/activities/63rsLp\\",\\"weight\\":\\"1.0\\",\\"activity_link\\":\\"https://github.com/\\",\\"g_title\\":\\"Cool issue title!\\",\\"g_number\\":55,\\"g_html_url\\":\\"https://github.com/\\",\\"g_created_at\\":\\"2023-06-21T15:54:04.579+01:00\\",\\"is_pull_request\\":null},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"la4sVD\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"By3S5j\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"jP8TMj\\",\\"type\\":\\"repository\\"}}}},{\\"id\\":\\"V5YsvV\\",\\"type\\":\\"pull_request_activity\\",\\"attributes\\":{\\"action\\":\\"opened\\",\\"created_at\\":\\"2023-06-21T14:54:04.524Z\\",\\"key\\":\\"jason/hermine#72\\",\\"occurred_at\\":\\"2023-06-21T14:54:04.508Z\\",\\"updated_at\\":\\"2023-06-21T14:54:04.524Z\\",\\"type\\":\\"PullRequestActivity\\",\\"properties\\":{\\"github_repository\\":\\"jason/hermine\\",\\"github_organization\\":\\"jason\\",\\"github_pull_request\\":\\"jason/hermine/#72\\"},\\"tags\\":[\\"channel:github\\",\\"github_organization:jason\\",\\"github_repository:jason/hermine\\",\\"github_pull_request:jason/hermine/#72\\"],\\"orbit_url\\":\\"http://localhost:3000/avelinawiza/activities/V5YsvV\\",\\"weight\\":\\"1.0\\",\\"activity_link\\":\\"https://github.com/\\",\\"g_title\\":\\"Cool PR title!\\",\\"g_number\\":72,\\"g_html_url\\":\\"https://github.com/\\",\\"g_created_at\\":\\"2023-06-21T15:54:04.508+01:00\\",\\"is_pull_request\\":null,\\"g_merged\\":true,\\"g_merged_at\\":null,\\"g_merged_by\\":null},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"lnrs0l\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"By3S5j\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"6l3Tz9\\",\\"type\\":\\"repository\\"}}}},{\\"id\\":\\"6a4sBp\\",\\"type\\":\\"spec_activity\\",\\"attributes\\":{\\"action\\":\\"spec_action\\",\\"created_at\\":\\"2023-06-21T14:54:04.438Z\\",\\"key\\":\\"clé\\",\\"occurred_at\\":\\"2023-06-21T14:54:04.437Z\\",\\"updated_at\\":\\"2023-06-21T14:54:04.438Z\\",\\"type\\":\\"SpecActivity\\",\\"properties\\":{\\"prop_1\\":\\"value_1\\",\\"prop_2\\":\\"value_2\\"},\\"tags\\":[\\"spec-tag-1\\",\\"spec-tag-2\\"],\\"orbit_url\\":\\"http://localhost:3000/avelinawiza/activities/6a4sBp\\",\\"weight\\":\\"1.0\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"D2Esq5\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"By3S5j\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"jBlTg9\\",\\"type\\":\\"repository\\"}}}}],\\"included\\":[{\\"id\\":\\"la4sVD\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Opened an issue\\",\\"short_name\\":\\"Issue opened\\",\\"key\\":\\"issues:opened\\",\\"channel\\":\\"github\\",\\"source\\":\\"github\\",\\"weight\\":\\"6.0\\"}},{\\"id\\":\\"By3S5j\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:04.391Z\\",\\"location\\":null,\\"name\\":\\"JolineLang\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"jolinelang\\",\\"source\\":\\"installation\\",\\"tag_list\\":[\\"ruby\\"],\\"tags\\":[\\"ruby\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:04.391Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/avelinawiza/members/jolinelang\\",\\"created\\":false,\\"id\\":\\"By3S5j\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"jP8TMj\\",\\"type\\":\\"repository\\",\\"attributes\\":{\\"owner\\":\\"see\\",\\"name\\":\\"tyrell\\",\\"full_name\\":\\"see/tyrell\\",\\"updated_at\\":\\"2023-06-21T14:54:04.577Z\\",\\"created_at\\":\\"2023-06-21T14:54:04.577Z\\"}},{\\"id\\":\\"lnrs0l\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"persuade Mysource 3\\",\\"short_name\\":\\"Spec Channel\\",\\"key\\":\\"spec:happened:1\\",\\"channel\\":\\"mysource\\",\\"source\\":\\"mysource\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"6l3Tz9\\",\\"type\\":\\"repository\\",\\"attributes\\":{\\"owner\\":\\"andreasbernier\\",\\"name\\":\\"timmybatz\\",\\"full_name\\":\\"andreasbernier/timmybatz\\",\\"updated_at\\":\\"2023-06-21T14:54:04.496Z\\",\\"created_at\\":\\"2023-06-21T14:54:04.496Z\\"}},{\\"id\\":\\"D2Esq5\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"qualify Mysource 2\\",\\"short_name\\":\\"Spec Channel\\",\\"key\\":\\"spec_activity_type_key\\",\\"channel\\":\\"mysource\\",\\"source\\":\\"mysource\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"jBlTg9\\",\\"type\\":\\"repository\\",\\"attributes\\":{\\"owner\\":\\"randolph\\",\\"name\\":\\"bruna\\",\\"full_name\\":\\"orbit-love/orbit-model\\",\\"updated_at\\":\\"2023-06-21T14:54:04.419Z\\",\\"created_at\\":\\"2023-06-21T14:54:04.419Z\\"}}],\\"links\\":{\\"first\\":\\"http://localhost:3000/api/v1/avelinawiza/activities?activity_type=&affiliation=&cities%5B%5D=&company%5B%5D=&countries%5B%5D=&direction=DESC&end_date=&filters=true&identity=&items=10&member_tags=&orbit=&page=1®ions%5B%5D=&relative=&sort=occurred_at&start_date=&title%5B%5D=&workspace=avelinawiza\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_activities_data_items] + included: [query_workspace_slug_activities_included_items] + links: query_workspace_slug_activities_links +} + +type query_workspace_slug_activities_data_items { + id: String + type: String + attributes: query_workspace_slug_activities_data_items_attributes + relationships: query_workspace_slug_activities_data_items_relationships +} + +type query_workspace_slug_activities_data_items_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: query_workspace_slug_activities_data_items_attributes2 + tags: [URL] + orbit_url: URL + weight: String + activity_link: URL + g_title: String + g_number: Int + g_html_url: URL + g_created_at: DateTime + is_pull_request: Void +} + +type query_workspace_slug_activities_data_items_attributes2 { + github_issue: String + github_repository: String + github_organization: String +} + +""" +A field whose value conforms to the standard URL format as specified in RFC3986: https://www.ietf.org/rfc/rfc3986.txt. +""" +scalar URL + +"""Represents empty values""" +scalar Void + +type query_workspace_slug_activities_data_items_relationships { + activity_type: query_workspace_slug_activities_data_items_relationships_activity_type + member: query_workspace_slug_activities_data_items_relationships_member + repository: query_workspace_slug_activities_data_items_relationships_repository +} + +type query_workspace_slug_activities_data_items_relationships_activity_type { + data: query_workspace_slug_activities_data_items_relationships_activity_type_data +} + +type query_workspace_slug_activities_data_items_relationships_activity_type_data { + id: String + type: String +} + +type query_workspace_slug_activities_data_items_relationships_member { + data: query_workspace_slug_activities_data_items_relationships_member_data +} + +type query_workspace_slug_activities_data_items_relationships_member_data { + id: String + type: String +} + +type query_workspace_slug_activities_data_items_relationships_repository { + data: query_workspace_slug_activities_data_items_relationships_repository_data +} + +type query_workspace_slug_activities_data_items_relationships_repository_data { + id: String + type: String +} + +type query_workspace_slug_activities_included_items { + id: String + type: String + attributes: query_workspace_slug_activities_included_items_attributes +} + +type query_workspace_slug_activities_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type query_workspace_slug_activities_links { + first: URL + prev: Void + next: Void +} + +enum queryInput_workspace_slug_activities_affiliation { + member + teammate +} + +"""Comma separated list of activity types""" +enum queryInput_workspace_slug_activities_activity_type { + issue_comment_created @enum(subgraph: "test", value: "\\"issue_comment:created\\"") + pull_requests_opened @enum(subgraph: "test", value: "\\"pull_requests:opened\\"") + pull_requests_merged @enum(subgraph: "test", value: "\\"pull_requests:merged\\"") + fork_created @enum(subgraph: "test", value: "\\"fork:created\\"") + star_created @enum(subgraph: "test", value: "\\"star:created\\"") + discussions_discussion_created @enum(subgraph: "test", value: "\\"discussions:discussion_created\\"") + discussions_comment @enum(subgraph: "test", value: "\\"discussions:comment\\"") + discussions_reply @enum(subgraph: "test", value: "\\"discussions:reply\\"") + discord_message_sent @enum(subgraph: "test", value: "\\"discord:message:sent\\"") + tweet_sent @enum(subgraph: "test", value: "\\"tweet:sent\\"") + twitter_followed @enum(subgraph: "test", value: "\\"twitter:followed\\"") + discord_thread_replied @enum(subgraph: "test", value: "\\"discord:thread:replied\\"") + discord_message_replied @enum(subgraph: "test", value: "\\"discord:message:replied\\"") + discord_server_joined @enum(subgraph: "test", value: "\\"discord:server:joined\\"") + discourse_topic_created @enum(subgraph: "test", value: "\\"discourse:topic:created\\"") + discourse_post_created @enum(subgraph: "test", value: "\\"discourse:post:created\\"") + discourse_post_liked @enum(subgraph: "test", value: "\\"discourse:post:liked\\"") + discourse_user_created @enum(subgraph: "test", value: "\\"discourse:user:created\\"") + discord_forum_post_created @enum(subgraph: "test", value: "\\"discord:forum:post_created\\"") + slack_message_sent @enum(subgraph: "test", value: "\\"slack:message:sent\\"") + slack_thread_replied @enum(subgraph: "test", value: "\\"slack:thread:replied\\"") + slack_channel_joined @enum(subgraph: "test", value: "\\"slack:channel:joined\\"") + custom_happened @enum(subgraph: "test", value: "\\"custom:happened\\"") + dev_comment @enum(subgraph: "test", value: "\\"dev:comment\\"") + dev_followed @enum(subgraph: "test", value: "\\"dev:followed\\"") + insided_article_created @enum(subgraph: "test", value: "\\"insided:article:created\\"") + insided_article_replied @enum(subgraph: "test", value: "\\"insided:article:replied\\"") + insided_conversation_started @enum(subgraph: "test", value: "\\"insided:conversation:started\\"") + insided_conversation_replied @enum(subgraph: "test", value: "\\"insided:conversation:replied\\"") + insided_idea_replied @enum(subgraph: "test", value: "\\"insided:idea:replied\\"") + insided_question_asked @enum(subgraph: "test", value: "\\"insided:question:asked\\"") + insided_idea_submitted @enum(subgraph: "test", value: "\\"insided:idea:submitted\\"") + linkedin_comment @enum(subgraph: "test", value: "\\"linkedin:comment\\"") + reddit_comment @enum(subgraph: "test", value: "\\"reddit:comment\\"") + insided_question_replied @enum(subgraph: "test", value: "\\"insided:question:replied\\"") + reddit_post @enum(subgraph: "test", value: "\\"reddit:post\\"") + stackoverflow_answer @enum(subgraph: "test", value: "\\"stackoverflow:answer\\"") + stackoverflow_question @enum(subgraph: "test", value: "\\"stackoverflow:question\\"") + youtube_comment @enum(subgraph: "test", value: "\\"youtube:comment\\"") + note_created @enum(subgraph: "test", value: "\\"note:created\\"") + post_created @enum(subgraph: "test", value: "\\"post:created\\"") + issues_opened @enum(subgraph: "test", value: "\\"issues:opened\\"") +} + +enum queryInput_workspace_slug_activities_identity { + github + twitter + email + discourse + linkedin + devto + slack + discord +} + +enum queryInput_workspace_slug_activities_direction { + ASC + DESC +} + +enum queryInput_workspace_slug_activities_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +enum queryInput_workspace_slug_activities_sort { + occurred_at + member +} + +type workspace_slug_activities_by_id_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"ZPosjV\\",\\"type\\":\\"spec_activity\\",\\"attributes\\":{\\"action\\":\\"spec_action\\",\\"created_at\\":\\"2023-06-21T14:54:07.274Z\\",\\"key\\":\\"clé\\",\\"occurred_at\\":\\"2023-06-21T14:54:07.264Z\\",\\"updated_at\\":\\"2023-06-21T14:54:07.274Z\\",\\"type\\":\\"SpecActivity\\",\\"properties\\":{\\"prop_1\\":\\"value_1\\",\\"prop_2\\":\\"value_2\\"},\\"tags\\":[\\"spec-tag-1\\",\\"spec-tag-2\\"],\\"orbit_url\\":\\"http://localhost:3000/markitasauer/activities/ZPosjV\\",\\"weight\\":\\"1.0\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"D3jsky\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"rmMSRr\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"9ABTo6\\",\\"type\\":\\"repository\\"}},\\"user\\":{\\"data\\":{\\"id\\":\\"OA3F51\\",\\"type\\":\\"user\\"}}}},\\"included\\":[{\\"id\\":\\"D3jsky\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"take Mysource 29\\",\\"short_name\\":\\"Spec Channel\\",\\"key\\":\\"spec:happened:9\\",\\"channel\\":\\"mysource\\",\\"source\\":\\"mysource\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"rmMSRr\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:07.270Z\\",\\"location\\":null,\\"name\\":\\"AudieDare\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"audiedare\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:07.270Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/markitasauer/members/audiedare\\",\\"created\\":false,\\"id\\":\\"rmMSRr\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"9ABTo6\\",\\"type\\":\\"repository\\",\\"attributes\\":{\\"owner\\":\\"leo\\",\\"name\\":\\"vernettaprohaska\\",\\"full_name\\":\\"leo/vernettaprohaska\\",\\"updated_at\\":\\"2023-06-21T14:54:07.226Z\\",\\"created_at\\":\\"2023-06-21T14:54:07.226Z\\"}},{\\"id\\":\\"OA3F51\\",\\"type\\":\\"user\\",\\"attributes\\":{\\"name\\":\\"ClarettaKunzeIII\\",\\"updated_at\\":\\"2023-06-21T14:54:07.203Z\\",\\"created_at\\":\\"2023-06-21T14:54:07.195Z\\"}}]}") { + data: query_workspace_slug_activities_by_id_data + included: [query_workspace_slug_activities_by_id_included_items] +} + +type query_workspace_slug_activities_by_id_data { + id: String + type: String + attributes: query_workspace_slug_activities_by_id_data_attributes + relationships: query_workspace_slug_activities_by_id_data_relationships +} + +type query_workspace_slug_activities_by_id_data_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: query_workspace_slug_activities_by_id_data_attributes2 + tags: [String] + orbit_url: URL + weight: String +} + +type query_workspace_slug_activities_by_id_data_attributes2 { + prop_1: String + prop_2: String +} + +type query_workspace_slug_activities_by_id_data_relationships { + activity_type: query_workspace_slug_activities_by_id_data_relationships_activity_type + member: query_workspace_slug_activities_by_id_data_relationships_member + repository: query_workspace_slug_activities_by_id_data_relationships_repository + user: query_workspace_slug_activities_by_id_data_relationships_user +} + +type query_workspace_slug_activities_by_id_data_relationships_activity_type { + data: query_workspace_slug_activities_by_id_data_relationships_activity_type_data +} + +type query_workspace_slug_activities_by_id_data_relationships_activity_type_data { + id: String + type: String +} + +type query_workspace_slug_activities_by_id_data_relationships_member { + data: query_workspace_slug_activities_by_id_data_relationships_member_data +} + +type query_workspace_slug_activities_by_id_data_relationships_member_data { + id: String + type: String +} + +type query_workspace_slug_activities_by_id_data_relationships_repository { + data: query_workspace_slug_activities_by_id_data_relationships_repository_data +} + +type query_workspace_slug_activities_by_id_data_relationships_repository_data { + id: String + type: String +} + +type query_workspace_slug_activities_by_id_data_relationships_user { + data: query_workspace_slug_activities_by_id_data_relationships_user_data +} + +type query_workspace_slug_activities_by_id_data_relationships_user_data { + id: String + type: String +} + +type query_workspace_slug_activities_by_id_included_items { + id: String + type: String + attributes: query_workspace_slug_activities_by_id_included_items_attributes +} + +type query_workspace_slug_activities_by_id_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type workspace_slug_activity_types_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"5Gds1O\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Created content\\",\\"short_name\\":\\"Content created\\",\\"key\\":\\"post:created\\",\\"channel\\":\\"content\\",\\"source\\":\\"content\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"DOnsmL\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Activated their account on product\\",\\"short_name\\":\\"Activated account\\",\\"key\\":\\"activated_account\\",\\"channel\\":\\"product\\",\\"source\\":\\"product\\",\\"weight\\":\\"6.0\\"}}],\\"links\\":{\\"first\\":\\"/alejandrawehner/activity_types?page=1\\",\\"last\\":\\"/alejandrawehner/activity_types?page=1\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_activity_types_data_items] + links: query_workspace_slug_activity_types_links +} + +type query_workspace_slug_activity_types_data_items { + id: String + type: String + attributes: query_workspace_slug_activity_types_data_items_attributes +} + +type query_workspace_slug_activity_types_data_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type query_workspace_slug_activity_types_links { + first: String + last: String + prev: Void + next: Void +} + +type workspace_slug_members_by_member_slug_activities_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"VlEsOe\\",\\"type\\":\\"spec_activity\\",\\"attributes\\":{\\"action\\":\\"spec_action\\",\\"created_at\\":\\"2023-06-21T14:54:11.610Z\\",\\"key\\":\\"clé\\",\\"occurred_at\\":\\"2023-06-21T14:54:11.609Z\\",\\"updated_at\\":\\"2023-06-21T14:54:11.610Z\\",\\"type\\":\\"SpecActivity\\",\\"properties\\":{\\"prop_1\\":\\"value_1\\",\\"prop_2\\":\\"value_2\\"},\\"tags\\":[\\"spec-tag-1\\",\\"spec-tag-2\\"],\\"orbit_url\\":\\"http://localhost:3000/parishuelphd/activities/VlEsOe\\",\\"weight\\":\\"1.0\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"oQQsBb\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"BloSvr\\",\\"type\\":\\"member\\"}}}}],\\"included\\":[{\\"id\\":\\"oQQsBb\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"opine Mysource 34\\",\\"short_name\\":\\"Spec Channel\\",\\"key\\":\\"spec:activity\\",\\"channel\\":\\"mysource\\",\\"source\\":\\"mysource\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"BloSvr\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:11.551Z\\",\\"location\\":null,\\"name\\":\\"DelphaLegros\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"delphalegros\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:11.551Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/parishuelphd/members/delphalegros\\",\\"created\\":false,\\"id\\":\\"BloSvr\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}}],\\"links\\":{\\"first\\":\\"/parishuelphd/members/delphalegros/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=spec%3Aactivity&type=\\",\\"last\\":\\"/parishuelphd/members/delphalegros/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=spec%3Aactivity&type=\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_members_by_member_slug_activities_data_items] + included: [query_workspace_slug_members_by_member_slug_activities_included_items] + links: query_workspace_slug_members_by_member_slug_activities_links +} + +type query_workspace_slug_members_by_member_slug_activities_data_items { + id: String + type: String + attributes: query_workspace_slug_members_by_member_slug_activities_data_items_attributes + relationships: query_workspace_slug_members_by_member_slug_activities_data_items_relationships +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: query_workspace_slug_members_by_member_slug_activities_data_items_attributes2 + tags: [String] + orbit_url: URL + weight: String +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_attributes2 { + prop_1: String + prop_2: String +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships { + activity_type: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type + member: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type { + data: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_activity_type_data { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member { + data: query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data +} + +type query_workspace_slug_members_by_member_slug_activities_data_items_relationships_member_data { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_activities_included_items { + id: String + type: String + attributes: query_workspace_slug_members_by_member_slug_activities_included_items_attributes +} + +type query_workspace_slug_members_by_member_slug_activities_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type query_workspace_slug_members_by_member_slug_activities_links { + first: String + last: String + prev: Void + next: Void +} + +enum queryInput_workspace_slug_members_by_member_slug_activities_direction { + ASC + DESC +} + +enum queryInput_workspace_slug_members_by_member_slug_activities_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +enum queryInput_workspace_slug_members_by_member_slug_activities_sort { + occurred_at + member +} + +type workspace_slug_members_by_member_slug_notes_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"o5Nf2J\\",\\"type\\":\\"note\\",\\"attributes\\":{\\"id\\":\\"o5Nf2J\\",\\"created_at\\":\\"2023-06-21T14:54:15.417Z\\",\\"body\\":\\"heyo\\",\\"updated_at\\":\\"2023-06-21T14:54:15.417Z\\"},\\"relationships\\":{\\"member\\":{\\"data\\":{\\"id\\":\\"jPESm8\\",\\"type\\":\\"member\\"}},\\"user\\":{\\"data\\":{\\"id\\":\\"lqAFn8\\",\\"type\\":\\"user\\"}}}}],\\"included\\":[{\\"id\\":\\"jPESm8\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:15.397Z\\",\\"location\\":null,\\"name\\":\\"MsKirkKemmer\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"mskirkkemmer\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:15.397Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/mariahturner/members/mskirkkemmer\\",\\"created\\":false,\\"id\\":\\"jPESm8\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"lqAFn8\\",\\"type\\":\\"user\\",\\"attributes\\":{\\"name\\":\\"TristanBreitenberg\\",\\"updated_at\\":\\"2023-06-21T14:54:15.415Z\\",\\"created_at\\":\\"2023-06-21T14:54:15.409Z\\"}}],\\"links\\":{\\"first\\":\\"/mariahturner/members/mskirkkemmer/notes?page=1\\",\\"last\\":\\"/mariahturner/members/mskirkkemmer/notes?page=1\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_members_by_member_slug_notes_data_items] + included: [query_workspace_slug_members_by_member_slug_notes_included_items] + links: query_workspace_slug_members_by_member_slug_notes_links +} + +type query_workspace_slug_members_by_member_slug_notes_data_items { + id: String + type: String + attributes: query_workspace_slug_members_by_member_slug_notes_data_items_attributes + relationships: query_workspace_slug_members_by_member_slug_notes_data_items_relationships +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_attributes { + id: String + created_at: DateTime + body: String + updated_at: DateTime +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships { + member: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member + user: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member { + data: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_member_data { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user { + data: query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data +} + +type query_workspace_slug_members_by_member_slug_notes_data_items_relationships_user_data { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_notes_included_items { + id: String + type: String + attributes: query_workspace_slug_members_by_member_slug_notes_included_items_attributes + relationships: query_workspace_slug_members_by_member_slug_notes_included_items_relationships +} + +type query_workspace_slug_members_by_member_slug_notes_included_items_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: Void + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [JSON] + tags: [JSON] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: Void + github: Void + discourse: Void + email: Void + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +""" +The \`JSON\` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf") + +type query_workspace_slug_members_by_member_slug_notes_included_items_relationships { + identities: query_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities + organizations: query_workspace_slug_members_by_member_slug_notes_included_items_relationships_organizations +} + +type query_workspace_slug_members_by_member_slug_notes_included_items_relationships_identities { + data: [JSON] +} + +type query_workspace_slug_members_by_member_slug_notes_included_items_relationships_organizations { + data: [JSON] +} + +type query_workspace_slug_members_by_member_slug_notes_links { + first: String + last: String + prev: Void + next: Void +} + +type workspace_slug_members_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"jaPSJy\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":\\"PuraRutherford\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:15.875Z\\",\\"location\\":null,\\"name\\":\\"Sally\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"sally\\",\\"source\\":\\"installation\\",\\"tag_list\\":[\\"ruby\\"],\\"tags\\":[\\"ruby\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:15.883Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/herschelmosciskidvm/members/sally\\",\\"created\\":false,\\"id\\":\\"jaPSJy\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":\\"2023-06-19T14:54:15.967Z\\",\\"last_activity_occurred_at\\":\\"2023-06-21T13:54:15.993Z\\",\\"activities_count\\":2,\\"activities_score\\":2,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"5geTxn\\",\\"type\\":\\"spec_identity\\"}]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"aWQFAB\\",\\"type\\":\\"organization\\"}]}}},{\\"id\\":\\"4EzSdZ\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:15.858Z\\",\\"location\\":null,\\"name\\":\\"Josh\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"josh\\",\\"source\\":\\"installation\\",\\"tag_list\\":[\\"ruby\\"],\\"tags\\":[\\"ruby\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:15.866Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/herschelmosciskidvm/members/josh\\",\\"created\\":false,\\"id\\":\\"4EzSdZ\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":\\"2023-06-13T14:54:15.945Z\\",\\"last_activity_occurred_at\\":\\"2023-06-17T14:54:15.888Z\\",\\"activities_count\\":3,\\"activities_score\\":3,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"nbWTe1\\",\\"type\\":\\"spec_identity\\"}]},\\"organizations\\":{\\"data\\":[]}}}],\\"included\\":[{\\"id\\":\\"43\\",\\"type\\":\\"spec_identity\\"},{\\"id\\":\\"aWQFAB\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"aWQFAB\\",\\"name\\":\\"PuraRutherford\\",\\"website\\":\\"example-1.com\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:16.047Z\\",\\"updated_at\\":\\"2023-06-21T14:54:16.047Z\\",\\"lifecycle_stage\\":null,\\"deal_closed_date\\":null,\\"price_plan\\":null,\\"crm_uid\\":null,\\"crm_url\\":null,\\"owner_name\\":null,\\"owner_email\\":null,\\"source\\":null}},{\\"id\\":\\"42\\",\\"type\\":\\"spec_identity\\"}],\\"links\\":{\\"first\\":\\"http://localhost:3000/api/v1/herschelmosciskidvm/members?activities_count_max=99&activities_count_min=1&activity_type=type%3Anew%2Cspec%3Aactivity&affiliation=&cities%5B%5D=&company%5B%5D=&countries%5B%5D=&direction=DESC&end_date=&identity=&items=10&member_tags=ruby%7Crails%2C-go&orbit=&page=1&query=®ions%5B%5D=&relative=&sort=last_activity&start_date=&title%5B%5D=&workspace=herschelmosciskidvm\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_members_data_items] + included: [query_workspace_slug_members_included_items] + links: query_workspace_slug_members_links +} + +type query_workspace_slug_members_data_items { + id: String + type: String + attributes: query_workspace_slug_members_data_items_attributes + relationships: query_workspace_slug_members_data_items_relationships +} + +type query_workspace_slug_members_data_items_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: String + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [String] + tags: [String] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: DateTime + last_activity_occurred_at: DateTime + activities_count: Int + activities_score: Int + twitter: Void + github: Void + discourse: Void + email: Void + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +type query_workspace_slug_members_data_items_relationships { + identities: query_workspace_slug_members_data_items_relationships_identities + organizations: query_workspace_slug_members_data_items_relationships_organizations +} + +type query_workspace_slug_members_data_items_relationships_identities { + data: [query_workspace_slug_members_data_items_relationships_identities_data_items] +} + +type query_workspace_slug_members_data_items_relationships_identities_data_items { + id: String + type: String +} + +type query_workspace_slug_members_data_items_relationships_organizations { + data: [query_workspace_slug_members_data_items_relationships_organizations_data_items] +} + +type query_workspace_slug_members_data_items_relationships_organizations_data_items { + id: String + type: String +} + +type query_workspace_slug_members_included_items { + id: String + type: String +} + +type query_workspace_slug_members_links { + first: URL + prev: Void + next: Void +} + +enum queryInput_workspace_slug_members_affiliation { + member + teammate +} + +"""Comma separated list of activity types""" +enum queryInput_workspace_slug_members_activity_type { + issue_comment_created @enum(subgraph: "test", value: "\\"issue_comment:created\\"") + pull_requests_opened @enum(subgraph: "test", value: "\\"pull_requests:opened\\"") + pull_requests_merged @enum(subgraph: "test", value: "\\"pull_requests:merged\\"") + fork_created @enum(subgraph: "test", value: "\\"fork:created\\"") + star_created @enum(subgraph: "test", value: "\\"star:created\\"") + discussions_discussion_created @enum(subgraph: "test", value: "\\"discussions:discussion_created\\"") + discussions_comment @enum(subgraph: "test", value: "\\"discussions:comment\\"") + discussions_reply @enum(subgraph: "test", value: "\\"discussions:reply\\"") + discord_message_sent @enum(subgraph: "test", value: "\\"discord:message:sent\\"") + tweet_sent @enum(subgraph: "test", value: "\\"tweet:sent\\"") + twitter_followed @enum(subgraph: "test", value: "\\"twitter:followed\\"") + discord_thread_replied @enum(subgraph: "test", value: "\\"discord:thread:replied\\"") + discord_message_replied @enum(subgraph: "test", value: "\\"discord:message:replied\\"") + discord_server_joined @enum(subgraph: "test", value: "\\"discord:server:joined\\"") + discourse_topic_created @enum(subgraph: "test", value: "\\"discourse:topic:created\\"") + discourse_post_created @enum(subgraph: "test", value: "\\"discourse:post:created\\"") + discourse_post_liked @enum(subgraph: "test", value: "\\"discourse:post:liked\\"") + discourse_user_created @enum(subgraph: "test", value: "\\"discourse:user:created\\"") + discord_forum_post_created @enum(subgraph: "test", value: "\\"discord:forum:post_created\\"") + slack_message_sent @enum(subgraph: "test", value: "\\"slack:message:sent\\"") + slack_thread_replied @enum(subgraph: "test", value: "\\"slack:thread:replied\\"") + slack_channel_joined @enum(subgraph: "test", value: "\\"slack:channel:joined\\"") + custom_happened @enum(subgraph: "test", value: "\\"custom:happened\\"") + dev_comment @enum(subgraph: "test", value: "\\"dev:comment\\"") + dev_followed @enum(subgraph: "test", value: "\\"dev:followed\\"") + insided_article_created @enum(subgraph: "test", value: "\\"insided:article:created\\"") + insided_article_replied @enum(subgraph: "test", value: "\\"insided:article:replied\\"") + insided_conversation_started @enum(subgraph: "test", value: "\\"insided:conversation:started\\"") + insided_conversation_replied @enum(subgraph: "test", value: "\\"insided:conversation:replied\\"") + insided_idea_replied @enum(subgraph: "test", value: "\\"insided:idea:replied\\"") + insided_question_asked @enum(subgraph: "test", value: "\\"insided:question:asked\\"") + insided_idea_submitted @enum(subgraph: "test", value: "\\"insided:idea:submitted\\"") + linkedin_comment @enum(subgraph: "test", value: "\\"linkedin:comment\\"") + reddit_comment @enum(subgraph: "test", value: "\\"reddit:comment\\"") + insided_question_replied @enum(subgraph: "test", value: "\\"insided:question:replied\\"") + reddit_post @enum(subgraph: "test", value: "\\"reddit:post\\"") + stackoverflow_answer @enum(subgraph: "test", value: "\\"stackoverflow:answer\\"") + stackoverflow_question @enum(subgraph: "test", value: "\\"stackoverflow:question\\"") + youtube_comment @enum(subgraph: "test", value: "\\"youtube:comment\\"") + note_created @enum(subgraph: "test", value: "\\"note:created\\"") + post_created @enum(subgraph: "test", value: "\\"post:created\\"") + issues_opened @enum(subgraph: "test", value: "\\"issues:opened\\"") +} + +enum queryInput_workspace_slug_members_identity { + github + twitter + email + discourse + linkedin + devto + slack + discord +} + +enum queryInput_workspace_slug_members_direction { + ASC + DESC +} + +enum queryInput_workspace_slug_members_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +enum queryInput_workspace_slug_members_sort { + activities_count + company + created_at + first_activity + github_followers + id + last_activity + location + love + name + orbit + reach + title + twitter_followers + updated_at +} + +type workspace_slug_members_by_member_slug_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"jWXSAW\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":\\"LindyOrn\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:22.753Z\\",\\"location\\":null,\\"name\\":\\"Josh\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"josh\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:22.753Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/ezekielwalshdds/members/josh\\",\\"created\\":false,\\"id\\":\\"jWXSAW\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"nZRTEE\\",\\"type\\":\\"spec_identity\\"}]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"BqkFva\\",\\"type\\":\\"organization\\"}]}}},\\"included\\":[{\\"id\\":\\"90\\",\\"type\\":\\"spec_identity\\"},{\\"id\\":\\"BqkFva\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"BqkFva\\",\\"name\\":\\"LindyOrn\\",\\"website\\":\\"example-25.com\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:22.773Z\\",\\"updated_at\\":\\"2023-06-21T14:54:22.773Z\\",\\"lifecycle_stage\\":null,\\"deal_closed_date\\":null,\\"price_plan\\":null,\\"crm_uid\\":null,\\"crm_url\\":null,\\"owner_name\\":null,\\"owner_email\\":null,\\"source\\":null}}]}") { + data: query_workspace_slug_members_by_member_slug_data + included: [query_workspace_slug_members_by_member_slug_included_items] +} + +type query_workspace_slug_members_by_member_slug_data { + id: String + type: String + attributes: query_workspace_slug_members_by_member_slug_data_attributes + relationships: query_workspace_slug_members_by_member_slug_data_relationships +} + +type query_workspace_slug_members_by_member_slug_data_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: String + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [JSON] + tags: [JSON] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: Void + github: Void + discourse: Void + email: Void + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +type query_workspace_slug_members_by_member_slug_data_relationships { + identities: query_workspace_slug_members_by_member_slug_data_relationships_identities + organizations: query_workspace_slug_members_by_member_slug_data_relationships_organizations +} + +type query_workspace_slug_members_by_member_slug_data_relationships_identities { + data: [query_workspace_slug_members_by_member_slug_data_relationships_identities_data_items] +} + +type query_workspace_slug_members_by_member_slug_data_relationships_identities_data_items { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_data_relationships_organizations { + data: [query_workspace_slug_members_by_member_slug_data_relationships_organizations_data_items] +} + +type query_workspace_slug_members_by_member_slug_data_relationships_organizations_data_items { + id: String + type: String +} + +type query_workspace_slug_members_by_member_slug_included_items { + id: String + type: String +} + +union workspace_slug_members_find_response @statusCodeTypeName(subgraph: "test", statusCode: 200, typeName: "workspace_slug_members_find_200_response") @statusCodeTypeName(subgraph: "test", statusCode: 404, typeName: "workspace_slug_members_find_404_response") = workspace_slug_members_find_200_response | workspace_slug_members_find_404_response + +type workspace_slug_members_find_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"rRxS6X\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":\\"orbit\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:36.087Z\\",\\"location\\":null,\\"name\\":\\"StanOConnerSr\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"stanoconnersr\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:36.087Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/jonaslindmd/members/stanoconnersr\\",\\"created\\":false,\\"id\\":\\"rRxS6X\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":\\"dzello\\",\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"1JrTad\\",\\"type\\":\\"github_identity\\"}]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"nb0FmD\\",\\"type\\":\\"organization\\"}]}}},\\"included\\":[{\\"id\\":\\"1JrTad\\",\\"type\\":\\"github_identity\\",\\"attributes\\":{\\"uid\\":\\"uid-82\\",\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":null,\\"source\\":\\"github\\",\\"source_host\\":\\"github.com\\",\\"profile_url\\":\\"https://github.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"nb0FmD\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"nb0FmD\\",\\"name\\":\\"orbit\\",\\"website\\":\\"orbit.love\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:36.110Z\\",\\"updated_at\\":\\"2023-06-21T14:54:36.110Z\\",\\"lifecycle_stage\\":null,\\"deal_closed_date\\":null,\\"price_plan\\":null,\\"crm_uid\\":null,\\"crm_url\\":null,\\"owner_name\\":null,\\"owner_email\\":null,\\"source\\":null}}]}") { + data: query_workspace_slug_members_find_oneOf_0_data + included: [query_workspace_slug_members_find_oneOf_0_included_items] +} + +type query_workspace_slug_members_find_oneOf_0_data { + id: String + type: String + attributes: query_workspace_slug_members_find_oneOf_0_data_attributes + relationships: query_workspace_slug_members_find_oneOf_0_data_relationships +} + +type query_workspace_slug_members_find_oneOf_0_data_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: String + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [JSON] + tags: [JSON] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: Void + github: String + discourse: Void + email: Void + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +type query_workspace_slug_members_find_oneOf_0_data_relationships { + identities: query_workspace_slug_members_find_oneOf_0_data_relationships_identities + organizations: query_workspace_slug_members_find_oneOf_0_data_relationships_organizations +} + +type query_workspace_slug_members_find_oneOf_0_data_relationships_identities { + data: [query_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items] +} + +type query_workspace_slug_members_find_oneOf_0_data_relationships_identities_data_items { + id: String + type: String +} + +type query_workspace_slug_members_find_oneOf_0_data_relationships_organizations { + data: [query_workspace_slug_members_find_oneOf_0_data_relationships_organizations_data_items] +} + +type query_workspace_slug_members_find_oneOf_0_data_relationships_organizations_data_items { + id: String + type: String +} + +type query_workspace_slug_members_find_oneOf_0_included_items { + id: String + type: String + attributes: query_workspace_slug_members_find_oneOf_0_included_items_attributes +} + +type query_workspace_slug_members_find_oneOf_0_included_items_attributes { + uid: String + email: Void + username: String + name: Void + source: String + source_host: String + profile_url: URL + url: Void +} + +type workspace_slug_members_find_404_response @example(subgraph: "test", value: "{\\"errors\\":\\"No member matching this identity was found\\"}") { + errors: String +} + +type workspace_slug_organizations_by_organization_id_activities_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"pjLsLQ\\",\\"type\\":\\"discord_message_sent_activity\\",\\"attributes\\":{\\"action\\":\\"sent\\",\\"created_at\\":\\"2023-06-21T14:54:37.280Z\\",\\"key\\":\\"1015015099\\",\\"occurred_at\\":\\"2023-06-20T14:54:37.241Z\\",\\"updated_at\\":\\"2023-06-21T14:54:37.280Z\\",\\"type\\":\\"DiscordMessageSentActivity\\",\\"properties\\":{\\"discord_server\\":\\"Orbit-Sandbox\\",\\"discord_channel\\":\\"general\\"},\\"tags\\":[\\"channel:discord\\",\\"discord_server:Orbit Sandbox\\",\\"discord_channel:general\\"],\\"orbit_url\\":\\"http://localhost:3000/brandieschmelerii/activities/pjLsLQ\\",\\"weight\\":\\"0.5\\",\\"activity_link\\":\\"https://discord.com/channels/823735870825037844/823735870825037847/1015015099\\",\\"body\\":\\"Hello world\\",\\"body_html\\":\\"Hello world\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"DzaseX\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"BwNSO9\\",\\"type\\":\\"member\\"}}}},{\\"id\\":\\"6ARs9g\\",\\"type\\":\\"discord_message_sent_activity\\",\\"attributes\\":{\\"action\\":\\"sent\\",\\"created_at\\":\\"2023-06-21T14:54:37.423Z\\",\\"key\\":\\"3401081985\\",\\"occurred_at\\":\\"2023-06-19T14:54:37.396Z\\",\\"updated_at\\":\\"2023-06-21T14:54:37.423Z\\",\\"type\\":\\"DiscordMessageSentActivity\\",\\"properties\\":{\\"discord_server\\":\\"Orbit-Sandbox\\",\\"discord_channel\\":\\"general\\"},\\"tags\\":[\\"channel:discord\\",\\"discord_server:Orbit Sandbox\\",\\"discord_channel:general\\"],\\"orbit_url\\":\\"http://localhost:3000/brandieschmelerii/activities/6ARs9g\\",\\"weight\\":\\"0.5\\",\\"activity_link\\":\\"https://discord.com/channels/823735870825037844/823735870825037847/3401081985\\",\\"body\\":\\"Hello world\\",\\"body_html\\":\\"Hello world\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"DzaseX\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"r9nSZ9\\",\\"type\\":\\"member\\"}}}},{\\"id\\":\\"VWesGO\\",\\"type\\":\\"github_activity\\",\\"attributes\\":{\\"action\\":\\"created\\",\\"created_at\\":\\"2023-06-21T14:54:37.369Z\\",\\"key\\":\\"github_activity_key:9\\",\\"occurred_at\\":\\"2023-06-18T14:54:37.301Z\\",\\"updated_at\\":\\"2023-06-21T14:54:37.369Z\\",\\"type\\":\\"GithubActivity\\",\\"properties\\":{\\"github_repository\\":\\"vincenzapfeffer/rosana\\",\\"github_organization\\":\\"vincenzapfeffer\\"},\\"tags\\":[\\"channel:github\\",\\"github_organization:vincenzapfeffer\\",\\"github_repository:vincenzapfeffer/rosana\\"],\\"orbit_url\\":\\"http://localhost:3000/brandieschmelerii/activities/VWesGO\\",\\"weight\\":\\"1.0\\",\\"activity_link\\":\\"https://github.com/vincenzapfeffer/rosana\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"owxs43\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"BwNSO9\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"9mPTrn\\",\\"type\\":\\"repository\\"}}}}],\\"included\\":[{\\"id\\":\\"DzaseX\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Sent a message in Discord\\",\\"short_name\\":\\"Discord message\\",\\"key\\":\\"discord:message:sent\\",\\"channel\\":\\"discord\\",\\"source\\":\\"discord\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"BwNSO9\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":\\"Organization1\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:37.231Z\\",\\"location\\":null,\\"name\\":\\"John Doe\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"john-doe\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:37.231Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/brandieschmelerii/members/john-doe\\",\\"created\\":false,\\"id\\":\\"BwNSO9\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"nRRFKv\\",\\"type\\":\\"organization\\"}]}}},{\\"id\\":\\"r9nSZ9\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":\\"Organization1\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:37.384Z\\",\\"location\\":null,\\"name\\":\\"Jane Smith\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"jane-smith\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:37.384Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/brandieschmelerii/members/jane-smith\\",\\"created\\":false,\\"id\\":\\"r9nSZ9\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"nRRFKv\\",\\"type\\":\\"organization\\"}]}}},{\\"id\\":\\"owxs43\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"patch Mysource 101\\",\\"short_name\\":\\"Spec Channel\\",\\"key\\":\\"spec:happened:13\\",\\"channel\\":\\"mysource\\",\\"source\\":\\"mysource\\",\\"weight\\":\\"1.0\\"}}],\\"links\\":{\\"first\\":\\"/brandieschmelerii/organizations/nRRFKv/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=\\",\\"last\\":\\"/brandieschmelerii/organizations/nRRFKv/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_organizations_by_organization_id_activities_data_items] + included: [query_workspace_slug_organizations_by_organization_id_activities_included_items] + links: query_workspace_slug_organizations_by_organization_id_activities_links +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items { + id: String + type: String + attributes: query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes + relationships: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 + tags: [URL] + orbit_url: URL + weight: String + activity_link: URL + body: String + body_html: String +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_attributes2 { + discord_server: String + discord_channel: String +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships { + activity_type: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type + member: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type { + data: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_activity_type_data { + id: String + type: String +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member { + data: query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data +} + +type query_workspace_slug_organizations_by_organization_id_activities_data_items_relationships_member_data { + id: String + type: String +} + +type query_workspace_slug_organizations_by_organization_id_activities_included_items { + id: String + type: String + attributes: query_workspace_slug_organizations_by_organization_id_activities_included_items_attributes +} + +type query_workspace_slug_organizations_by_organization_id_activities_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type query_workspace_slug_organizations_by_organization_id_activities_links { + first: String + last: String + prev: Void + next: Void +} + +enum queryInput_workspace_slug_organizations_by_organization_id_activities_direction { + ASC + DESC +} + +enum queryInput_workspace_slug_organizations_by_organization_id_activities_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +enum queryInput_workspace_slug_organizations_by_organization_id_activities_sort { + occurred_at + member +} + +enum queryInput_workspace_slug_organizations_by_organization_id_activities_activity_type { + content + custom + discord + discourse + github + slack + twitter +} + +type workspace_slug_organizations_by_organization_id_members_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"jPESdn\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"id\\":\\"jPESdn\\",\\"slug\\":\\"jane-smith\\",\\"name\\":\\"Jane Smith\\",\\"last_activity_occurred_at\\":null,\\"activities_score\\":0},\\"relationships\\":{}},{\\"id\\":\\"jYbS8E\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"id\\":\\"jYbS8E\\",\\"slug\\":\\"john-doe\\",\\"name\\":\\"John Doe\\",\\"last_activity_occurred_at\\":null,\\"activities_score\\":0},\\"relationships\\":{}}],\\"links\\":{\\"first\\":\\"/mrfernjohns/organizations/BqkFkv/members?page=1&items=10\\",\\"last\\":\\"/mrfernjohns/organizations/BqkFkv/members?page=1&items=10\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_organizations_by_organization_id_members_data_items] + links: query_workspace_slug_organizations_by_organization_id_members_links +} + +type query_workspace_slug_organizations_by_organization_id_members_data_items { + id: String + type: String + attributes: query_workspace_slug_organizations_by_organization_id_members_data_items_attributes + relationships: JSON +} + +type query_workspace_slug_organizations_by_organization_id_members_data_items_attributes { + id: String + slug: String + name: String + last_activity_occurred_at: Void + activities_score: Int +} + +type query_workspace_slug_organizations_by_organization_id_members_links { + first: String + last: String + prev: Void + next: Void +} + +enum queryInput_workspace_slug_organizations_by_organization_id_members_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +type workspace_slug_organizations_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"n5ZF98\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"n5ZF98\\",\\"name\\":\\"Organization2\\",\\"website\\":\\"org2.example.com\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:41.767Z\\",\\"updated_at\\":\\"2023-06-21T14:54:41.767Z\\",\\"lifecycle_stage\\":null,\\"deal_closed_date\\":null,\\"price_plan\\":null,\\"crm_uid\\":null,\\"crm_url\\":null,\\"owner_name\\":null,\\"owner_email\\":null,\\"source\\":null}},{\\"id\\":\\"V02F9A\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"V02F9A\\",\\"name\\":\\"Organization1\\",\\"website\\":\\"org1.example.com\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:41.746Z\\",\\"updated_at\\":\\"2023-06-21T14:54:41.746Z\\",\\"lifecycle_stage\\":\\"customer\\",\\"deal_closed_date\\":\\"2023-06-21T14:54:41.805Z\\",\\"price_plan\\":\\"Enterprise\\",\\"crm_uid\\":\\"abcde123451\\",\\"crm_url\\":\\"https://example.com/1\\",\\"owner_name\\":\\"John Toto\\",\\"owner_email\\":\\"john.toto@example.com\\",\\"source\\":\\"Fake CRM\\"}}],\\"links\\":{\\"first\\":\\"http://localhost:3000/api/v1/dorindaabshire/organizations?direction=DESC&items=10&page=1&query=&sort=name&workspace=dorindaabshire\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_organizations_data_items] + links: query_workspace_slug_organizations_links +} + +type query_workspace_slug_organizations_data_items { + id: String + type: String + attributes: query_workspace_slug_organizations_data_items_attributes +} + +type query_workspace_slug_organizations_data_items_attributes { + id: String + name: String + website: String + logo_url: Void + members_count: Int + employees_count: Void + organization_type: Void + industry: Void + estimated_annual_revenue: Void + founded_in: Void + location: Void + twitter: Void + twitter_followers: Void + facebook: Void + facebook_followers: Void + linkedin: Void + crunchbase: Void + email_addresses: Void + last_active: Void + active_since: Void + created_at: DateTime + updated_at: DateTime + lifecycle_stage: Void + deal_closed_date: Void + price_plan: Void + crm_uid: Void + crm_url: Void + owner_name: Void + owner_email: Void + source: Void +} + +type query_workspace_slug_organizations_links { + first: URL + prev: Void + next: Void +} + +enum queryInput_workspace_slug_organizations_direction { + ASC + DESC +} + +enum queryInput_workspace_slug_organizations_items { + _10 @enum(subgraph: "test", value: "\\"10\\"") + _50 @enum(subgraph: "test", value: "\\"50\\"") + _100 @enum(subgraph: "test", value: "\\"100\\"") +} + +enum queryInput_workspace_slug_organizations_sort { + name + website + members_count + employees_count +} + +type workspace_slug_organizations_by_organization_id_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"aWQFlA\\",\\"type\\":\\"organization\\",\\"attributes\\":{\\"id\\":\\"aWQFlA\\",\\"name\\":\\"Organization1\\",\\"website\\":\\"example-47.com\\",\\"logo_url\\":null,\\"members_count\\":1,\\"employees_count\\":null,\\"organization_type\\":null,\\"industry\\":null,\\"estimated_annual_revenue\\":null,\\"founded_in\\":null,\\"location\\":null,\\"twitter\\":null,\\"twitter_followers\\":null,\\"facebook\\":null,\\"facebook_followers\\":null,\\"linkedin\\":null,\\"crunchbase\\":null,\\"email_addresses\\":null,\\"last_active\\":null,\\"active_since\\":null,\\"created_at\\":\\"2023-06-21T14:54:42.605Z\\",\\"updated_at\\":\\"2023-06-21T14:54:42.605Z\\",\\"lifecycle_stage\\":null,\\"deal_closed_date\\":null,\\"price_plan\\":null,\\"crm_uid\\":null,\\"crm_url\\":null,\\"owner_name\\":null,\\"owner_email\\":null,\\"source\\":null}}}") { + data: query_workspace_slug_organizations_by_organization_id_data +} + +type query_workspace_slug_organizations_by_organization_id_data { + id: String + type: String + attributes: query_workspace_slug_organizations_by_organization_id_data_attributes +} + +type query_workspace_slug_organizations_by_organization_id_data_attributes { + id: String + name: String + website: String + logo_url: Void + members_count: Int + employees_count: Void + organization_type: Void + industry: Void + estimated_annual_revenue: Void + founded_in: Void + location: Void + twitter: Void + twitter_followers: Void + facebook: Void + facebook_followers: Void + linkedin: Void + crunchbase: Void + email_addresses: Void + last_active: Void + active_since: Void + created_at: DateTime + updated_at: DateTime + lifecycle_stage: Void + deal_closed_date: Void + price_plan: Void + crm_uid: Void + crm_url: Void + owner_name: Void + owner_email: Void + source: Void +} + +type workspace_slug_reports_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"1XOtmn\\",\\"type\\":\\"statistics\\",\\"attributes\\":{\\"workspace_id\\":\\"1XOtmn\\",\\"timeframe\\":{\\"start_date\\":\\"2023-05-22\\",\\"end_date\\":\\"2023-06-21\\",\\"start_date_last\\":\\"2023-04-21\\",\\"end_date_last\\":\\"2023-05-21\\"},\\"overview\\":{\\"total_members_count\\":1,\\"members_on_orbit_level_1_count\\":0,\\"members_on_orbit_level_2_count\\":0,\\"members_on_orbit_level_3_count\\":0,\\"members_on_orbit_level_4_count\\":0,\\"members_on_orbit_level_none_count\\":1},\\"members\\":{\\"active_count\\":1,\\"active_delta\\":0,\\"new_count\\":1,\\"new_delta\\":0,\\"returning_count\\":0,\\"returning_delta\\":0},\\"activities\\":{\\"total_count\\":1,\\"total_delta\\":0,\\"spec:activity\\":{\\"source\\":\\"mysource\\",\\"count\\":1,\\"delta\\":0,\\"members\\":{\\"active_count\\":1,\\"active_delta\\":0,\\"new_count\\":1,\\"new_delta\\":0,\\"returning_count\\":0,\\"returning_delta\\":0}},\\"foo:activity\\":{\\"source\\":\\"mysource\\",\\"count\\":0,\\"delta\\":0,\\"members\\":{\\"active_count\\":0,\\"active_delta\\":0,\\"new_count\\":0,\\"new_delta\\":0,\\"returning_count\\":0,\\"returning_delta\\":0}}}}}}") { + data: query_workspace_slug_reports_data +} + +type query_workspace_slug_reports_data { + id: String + type: String + attributes: query_workspace_slug_reports_data_attributes +} + +type query_workspace_slug_reports_data_attributes { + workspace_id: String + timeframe: query_workspace_slug_reports_data_attributes_timeframe + overview: query_workspace_slug_reports_data_attributes_overview + members: query_workspace_slug_reports_data_attributes_members + activities: query_workspace_slug_reports_data_attributes_activities +} + +type query_workspace_slug_reports_data_attributes_timeframe { + start_date: Date + end_date: Date + start_date_last: Date + end_date_last: Date +} + +"""Represents date values""" +scalar Date + +type query_workspace_slug_reports_data_attributes_overview { + total_members_count: Int + members_on_orbit_level_1_count: Int + members_on_orbit_level_2_count: Int + members_on_orbit_level_3_count: Int + members_on_orbit_level_4_count: Int + members_on_orbit_level_none_count: Int +} + +type query_workspace_slug_reports_data_attributes_members { + active_count: Int + active_delta: Int + new_count: Int + new_delta: Int + returning_count: Int + returning_delta: Int +} + +type query_workspace_slug_reports_data_attributes_activities { + total_count: Int + total_delta: Int + spec_activity: query_workspace_slug_reports_data_attributes_activities_spec_activity @resolveRootField(subgraph: "test", field: "spec:activity") + foo_activity: query_workspace_slug_reports_data_attributes_activities_foo_activity @resolveRootField(subgraph: "test", field: "foo:activity") +} + +type query_workspace_slug_reports_data_attributes_activities_spec_activity { + source: String + count: Int + delta: Int + members: query_workspace_slug_reports_data_attributes_activities_spec_activity_members +} + +type query_workspace_slug_reports_data_attributes_activities_spec_activity_members { + active_count: Int + active_delta: Int + new_count: Int + new_delta: Int + returning_count: Int + returning_delta: Int +} + +type query_workspace_slug_reports_data_attributes_activities_foo_activity { + source: String + count: Int + delta: Int + members: query_workspace_slug_reports_data_attributes_activities_foo_activity_members +} + +type query_workspace_slug_reports_data_attributes_activities_foo_activity_members { + active_count: Int + active_delta: Int + new_count: Int + new_delta: Int + returning_count: Int + returning_delta: Int +} + +type workspace_slug_webhooks_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"6qyFL6\\",\\"type\\":\\"webhook\\",\\"attributes\\":{\\"name\\":\\"My Test Webhook\\",\\"enabled\\":true,\\"updated_at\\":\\"2023-06-21T14:54:45.434Z\\",\\"created_at\\":\\"2023-06-21T14:54:45.434Z\\",\\"event_type\\":\\"activity:created\\",\\"url\\":\\"https://example.com/hook\\",\\"activity_types\\":[],\\"activity_tags\\":[],\\"member_tags\\":[],\\"activity_keywords\\":[],\\"include_teammates\\":false}}],\\"links\\":{\\"first\\":\\"/fake-workspace/webhooks?page=1\\",\\"last\\":\\"/fake-workspace/webhooks?page=1\\",\\"prev\\":null,\\"next\\":null}}") { + data: [query_workspace_slug_webhooks_data_items] + links: query_workspace_slug_webhooks_links +} + +type query_workspace_slug_webhooks_data_items { + id: String + type: String + attributes: query_workspace_slug_webhooks_data_items_attributes +} + +type query_workspace_slug_webhooks_data_items_attributes { + name: String + enabled: Boolean + updated_at: DateTime + created_at: DateTime + event_type: URL + url: URL + activity_types: [JSON] + activity_tags: [JSON] + member_tags: [JSON] + activity_keywords: [JSON] + include_teammates: Boolean +} + +type query_workspace_slug_webhooks_links { + first: String + last: String + prev: Void + next: Void +} + +type workspace_slug_webhooks_by_id_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"6ZbFM6\\",\\"type\\":\\"webhook\\",\\"attributes\\":{\\"name\\":\\"My Test Webhook\\",\\"enabled\\":true,\\"updated_at\\":\\"2023-06-21T14:54:45.849Z\\",\\"created_at\\":\\"2023-06-21T14:54:45.849Z\\",\\"event_type\\":\\"activity:created\\",\\"url\\":\\"https://example.com/hook\\",\\"activity_types\\":[],\\"activity_tags\\":[],\\"member_tags\\":[],\\"activity_keywords\\":[],\\"include_teammates\\":false}}}") { + data: query_workspace_slug_webhooks_by_id_data +} + +type query_workspace_slug_webhooks_by_id_data { + id: String + type: String + attributes: query_workspace_slug_webhooks_by_id_data_attributes +} + +type query_workspace_slug_webhooks_by_id_data_attributes { + name: String + enabled: Boolean + updated_at: DateTime + created_at: DateTime + event_type: URL + url: URL + activity_types: [JSON] + activity_tags: [JSON] + member_tags: [JSON] + activity_keywords: [JSON] + include_teammates: Boolean +} + +type workspaces_200_response @example(subgraph: "test", value: "{\\"data\\":[{\\"id\\":\\"15Vt67\\",\\"type\\":\\"workspace\\",\\"attributes\\":{\\"name\\":\\"Fake Workspace\\",\\"slug\\":\\"fake-workspace\\",\\"updated_at\\":\\"2023-06-21T14:54:46.429Z\\",\\"created_at\\":\\"2023-06-21T14:54:46.423Z\\"},\\"relationships\\":{\\"repositories\\":{\\"data\\":[]}}}],\\"included\\":[]}") { + data: [query_workspaces_data_items] + included: [JSON] +} + +type query_workspaces_data_items { + id: String + type: String + attributes: query_workspaces_data_items_attributes + relationships: query_workspaces_data_items_relationships +} + +type query_workspaces_data_items_attributes { + name: String + slug: String + updated_at: DateTime + created_at: DateTime +} + +type query_workspaces_data_items_relationships { + repositories: query_workspaces_data_items_relationships_repositories +} + +type query_workspaces_data_items_relationships_repositories { + data: [JSON] +} + +type workspaces_by_workspace_slug_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"PvetbL\\",\\"type\\":\\"workspace\\",\\"attributes\\":{\\"name\\":\\"Fake Workspace\\",\\"slug\\":\\"fake-workspace\\",\\"updated_at\\":\\"2023-06-21T14:54:46.807Z\\",\\"created_at\\":\\"2023-06-21T14:54:46.662Z\\",\\"members_count\\":4,\\"activities_count\\":1,\\"tags\\":{},\\"orbit_level_counts\\":{\\"1\\":0,\\"2\\":0,\\"3\\":1,\\"4\\":2}},\\"relationships\\":{\\"last_member\\":{\\"data\\":{\\"id\\":\\"jMNSnV\\",\\"type\\":\\"member\\"}},\\"last_activity\\":{\\"data\\":{\\"id\\":\\"ZPosrL\\",\\"type\\":\\"pull_request_activity\\"}},\\"repositories\\":{\\"data\\":[]}}},\\"included\\":[{\\"id\\":\\"jMNSnV\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:46.781Z\\",\\"location\\":null,\\"name\\":\\"LurlineGreenfelder\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"lurlinegreenfelder\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:46.781Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/fake-workspace/members/lurlinegreenfelder\\",\\"created\\":false,\\"id\\":\\"jMNSnV\\",\\"orbit_level\\":4,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"ZPosrL\\",\\"type\\":\\"pull_request_activity\\",\\"attributes\\":{\\"action\\":\\"opened\\",\\"created_at\\":\\"2023-06-21T14:54:46.735Z\\",\\"key\\":\\"raleighturner/denny#75\\",\\"occurred_at\\":\\"2023-06-21T14:54:46.723Z\\",\\"updated_at\\":\\"2023-06-21T14:54:46.735Z\\",\\"type\\":\\"PullRequestActivity\\",\\"properties\\":{\\"github_repository\\":\\"raleighturner/denny\\",\\"github_organization\\":\\"raleighturner\\",\\"github_pull_request\\":\\"raleighturner/denny/#75\\"},\\"tags\\":[\\"channel:github\\",\\"github_organization:raleighturner\\",\\"github_repository:raleighturner/denny\\",\\"github_pull_request:raleighturner/denny/#75\\"],\\"orbit_url\\":\\"http://localhost:3000/fake-workspace/activities/ZPosrL\\",\\"weight\\":\\"1.0\\",\\"activity_link\\":\\"https://github.com/\\",\\"g_title\\":\\"Here is some new code\\",\\"g_number\\":75,\\"g_html_url\\":\\"https://github.com/\\",\\"g_created_at\\":\\"2023-06-21T15:54:46.723+01:00\\",\\"is_pull_request\\":null,\\"g_merged\\":false,\\"g_merged_at\\":null,\\"g_merged_by\\":null},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"oWVsm9\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"jL5SZA\\",\\"type\\":\\"member\\"}},\\"repository\\":{\\"data\\":{\\"id\\":\\"6eeTk6\\",\\"type\\":\\"repository\\"}}}}]}") { + data: query_workspaces_by_workspace_slug_data + included: [query_workspaces_by_workspace_slug_included_items] +} + +type query_workspaces_by_workspace_slug_data { + id: String + type: String + attributes: query_workspaces_by_workspace_slug_data_attributes + relationships: query_workspaces_by_workspace_slug_data_relationships +} + +type query_workspaces_by_workspace_slug_data_attributes { + name: String + slug: String + updated_at: DateTime + created_at: DateTime + members_count: Int + activities_count: Int + tags: JSON + orbit_level_counts: query_workspaces_by_workspace_slug_data_attributes_orbit_level_counts +} + +type query_workspaces_by_workspace_slug_data_attributes_orbit_level_counts { + _1: Int @resolveRootField(subgraph: "test", field: "1") + _2: Int @resolveRootField(subgraph: "test", field: "2") + _3: Int @resolveRootField(subgraph: "test", field: "3") + _4: Int @resolveRootField(subgraph: "test", field: "4") +} + +type query_workspaces_by_workspace_slug_data_relationships { + last_member: query_workspaces_by_workspace_slug_data_relationships_last_member + last_activity: query_workspaces_by_workspace_slug_data_relationships_last_activity + repositories: query_workspaces_by_workspace_slug_data_relationships_repositories +} + +type query_workspaces_by_workspace_slug_data_relationships_last_member { + data: query_workspaces_by_workspace_slug_data_relationships_last_member_data +} + +type query_workspaces_by_workspace_slug_data_relationships_last_member_data { + id: String + type: String +} + +type query_workspaces_by_workspace_slug_data_relationships_last_activity { + data: query_workspaces_by_workspace_slug_data_relationships_last_activity_data +} + +type query_workspaces_by_workspace_slug_data_relationships_last_activity_data { + id: String + type: String +} + +type query_workspaces_by_workspace_slug_data_relationships_repositories { + data: [JSON] +} + +type query_workspaces_by_workspace_slug_included_items { + id: String + type: String + attributes: query_workspaces_by_workspace_slug_included_items_attributes + relationships: query_workspaces_by_workspace_slug_included_items_relationships +} + +type query_workspaces_by_workspace_slug_included_items_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: Void + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [JSON] + tags: [JSON] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Int + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: Void + github: Void + discourse: Void + email: Void + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +type query_workspaces_by_workspace_slug_included_items_relationships { + identities: query_workspaces_by_workspace_slug_included_items_relationships_identities + organizations: query_workspaces_by_workspace_slug_included_items_relationships_organizations +} + +type query_workspaces_by_workspace_slug_included_items_relationships_identities { + data: [JSON] +} + +type query_workspaces_by_workspace_slug_included_items_relationships_organizations { + data: [JSON] +} + +type Mutation { + """ + Use this method when you know an identity of the member (github, email, twitter, etc.) but not their Orbit ID. Pass fields in the member object to update the member in addition to creating the activity. + """ + post_workspace_slug_activities(workspace_slug: String!, input: activity_and_identity_Input): post_workspace_slug_activities_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/activities", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: POST) + """Create a Custom or a Content activity for a member""" + post_workspace_slug_members_by_member_slug_activities(workspace_slug: String!, member_slug: String!, input: custom_or_post_activity_Input): post_workspace_slug_members_by_member_slug_activities_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/activities", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: POST) + """Delete a post activity""" + delete_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/activities/{args.id}", httpMethod: DELETE) + """Update a custom activity for a member""" + put_workspace_slug_members_by_member_slug_activities_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: activity_Input): put_workspace_slug_members_by_member_slug_activities_by_id_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/activities/{args.id}", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: PUT) + """Add identity to a member""" + post_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): post_workspace_slug_members_by_member_slug_identities_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/identities", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: POST) + """Remove identity from a member""" + delete_workspace_slug_members_by_member_slug_identities(workspace_slug: String!, member_slug: String!, input: identity_Input): delete_workspace_slug_members_by_member_slug_identities_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/identities", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: DELETE) + """Create a note""" + post_workspace_slug_members_by_member_slug_notes(workspace_slug: String!, member_slug: String!, input: note_Input): post_workspace_slug_members_by_member_slug_notes_201_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/notes", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: POST) + """Update a note""" + put_workspace_slug_members_by_member_slug_notes_by_id(workspace_slug: String!, member_slug: String!, id: String!, input: note_Input): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}/notes/{args.id}", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\"}", httpMethod: PUT) + """ + This method is useful when you know a member's identity in another system and want to create or update the corresponding Orbit member. Identities can be specified in the identity object or member attributes like member.github. If no member exists, a new member will be created and linked to any provided identities. + """ + post_workspace_slug_members(workspace_slug: String!, input: member_and_identity_Input): post_workspace_slug_members_response @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\",\\"accept\\":\\"application/json;v=2\\"}", httpMethod: POST) + """Update a member""" + put_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!, input: member_Input): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\"}", httpMethod: PUT) + """Delete a member""" + delete_workspace_slug_members_by_member_slug(workspace_slug: String!, member_slug: String!): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/members/{args.member_slug}", httpMethod: DELETE) + """Update an organization""" + put_workspace_slug_organizations_by_organization_id(workspace_slug: String!, organization_id: String!, input: organization_Input): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/organizations/{args.organization_id}", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\"}", httpMethod: PUT) + """Create a webhook""" + post_workspace_slug_webhooks(workspace_slug: String!, input: webhook_subscription_Input): JSON @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/webhooks", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\"}", httpMethod: POST) + """Update a webhook""" + put_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!, input: webhook_subscription_Input): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/webhooks/{args.id}", operationSpecificHeaders: "{\\"Content-Type\\":\\"application/json\\"}", httpMethod: PUT) + """Delete a webhook""" + delete_workspace_slug_webhooks_by_id(workspace_slug: String!, id: String!): Void @httpOperation(subgraph: "test", path: "/{args.workspace_slug}/webhooks/{args.id}", httpMethod: DELETE) +} + +union post_workspace_slug_activities_response @statusCodeTypeName(subgraph: "test", statusCode: 201, typeName: "post_workspace_slug_activities_201_response") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "post_workspace_slug_activities_422_response") = post_workspace_slug_activities_201_response | post_workspace_slug_activities_422_response + +type post_workspace_slug_activities_201_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"6zoslV\\",\\"type\\":\\"custom_activity\\",\\"attributes\\":{\\"action\\":\\"happened\\",\\"created_at\\":\\"2023-06-21T14:54:08.263Z\\",\\"key\\":\\"thing-123\\",\\"occurred_at\\":\\"2023-06-21T14:54:08.255Z\\",\\"updated_at\\":\\"2023-06-21T14:54:08.263Z\\",\\"type\\":\\"CustomActivity\\",\\"properties\\":{},\\"tags\\":[\\"product\\",\\"enterprise\\",\\"channel:custom\\",\\"custom_type:custom-type\\",\\"custom_title:did-a-thing\\"],\\"orbit_url\\":\\"http://localhost:3000/mscalandrabrekke/activities/6zoslV\\",\\"weight\\":\\"0.2\\",\\"custom_description\\":\\"More info about the thing\\",\\"custom_link\\":\\"http://link.com/\\",\\"custom_link_text\\":\\"See the thing\\",\\"custom_title\\":\\"Did a thing\\",\\"custom_type\\":\\"custom-type\\",\\"custom_context\\":null,\\"body\\":\\"More info about the thing\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"574seD\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"r9nS0B\\",\\"type\\":\\"member\\"}},\\"user\\":{\\"data\\":{\\"id\\":\\"DXKFEz\\",\\"type\\":\\"user\\"}}}},\\"included\\":[{\\"id\\":\\"574seD\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Something happened\\",\\"short_name\\":\\"Custom\\",\\"key\\":\\"custom:happened\\",\\"channel\\":\\"custom\\",\\"source\\":\\"custom\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"3YETv3\\",\\"type\\":\\"twitter_identity\\",\\"attributes\\":{\\"uid\\":\\"45297280\\",\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":\\"Josh Dzielak\\",\\"source\\":\\"twitter\\",\\"source_host\\":\\"twitter.com\\",\\"profile_url\\":\\"https://twitter.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"r9nS0B\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"https://abs.twimg.com/sticky/default_profile_images/default_profile.png\\",\\"bio\\":\\"dzello.com/blog/2020/05/3… Co-founder & CTO @OrbitModel · advocate for dev advocates 🥑 · formerly @algolia and @keen_io · Ruby · Rails · JAMstack · he/him\\",\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:08.167Z\\",\\"location\\":\\"Paris, France\\",\\"name\\":\\"Josh Dzielak\\",\\"pronouns\\":null,\\"reach\\":1,\\"shipping_address\\":null,\\"slug\\":\\"dzello\\",\\"source\\":\\"api\\",\\"tag_list\\":[\\"one\\",\\"two\\"],\\"tags\\":[\\"one\\",\\"two\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:08.191Z\\",\\"merged_at\\":null,\\"url\\":\\"https://dzello.com/blog/2020/05/30/black-lives-matter/\\",\\"orbit_url\\":\\"http://localhost:3000/mscalandrabrekke/members/dzello\\",\\"created\\":true,\\"id\\":\\"r9nS0B\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":\\"dzello\\",\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":9,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"3YETv3\\",\\"type\\":\\"twitter_identity\\"}]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"DXKFEz\\",\\"type\\":\\"user\\",\\"attributes\\":{\\"name\\":\\"DiedreHettinger\\",\\"updated_at\\":\\"2023-06-21T14:54:08.087Z\\",\\"created_at\\":\\"2023-06-21T14:54:08.081Z\\"}}]}") { + data: mutation_post_workspace_slug_activities_oneOf_0_data + included: [mutation_post_workspace_slug_activities_oneOf_0_included_items] +} + +type mutation_post_workspace_slug_activities_oneOf_0_data { + id: String + type: String + attributes: mutation_post_workspace_slug_activities_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_activities_oneOf_0_data_relationships +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: JSON + tags: [String] + orbit_url: URL + weight: String + custom_description: String + custom_link: URL + custom_link_text: String + custom_title: String + custom_type: String + custom_context: Void + body: String +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships { + activity_type: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type + member: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member + user: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_activity_type_data { + id: String + type: String +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member_data +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_member_data { + id: String + type: String +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user { + data: mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user_data +} + +type mutation_post_workspace_slug_activities_oneOf_0_data_relationships_user_data { + id: String + type: String +} + +type mutation_post_workspace_slug_activities_oneOf_0_included_items { + id: String + type: String + attributes: mutation_post_workspace_slug_activities_oneOf_0_included_items_attributes +} + +type mutation_post_workspace_slug_activities_oneOf_0_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type post_workspace_slug_activities_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"base\\":[\\"Either identity or member name, email, GitHub, Twitter or Discourse is required\\"]}}") { + errors: mutation_post_workspace_slug_activities_oneOf_1_errors +} + +type mutation_post_workspace_slug_activities_oneOf_1_errors { + base: [String] +} + +input activity_and_identity_Input { + activity: mutationInput_post_workspace_slug_activities_input_activity_Input + identity: identity_Input +} + +input mutationInput_post_workspace_slug_activities_input_activity_Input @oneOf(subgraph: "test") { + activity_with_member_Input: activity_with_member_Input + post_activity_with_member_Input: post_activity_with_member_Input +} + +input activity_with_member_Input { + """A description of the activity; displayed in the timeline""" + description: String + """A URL for the activity; displayed in the timeline""" + link: String + """The text for the timeline link""" + link_text: String + """A title for the activity; displayed in the timeline""" + title: String! + """A custom weight to be used in filters and reports; defaults to 1.""" + weight: String + """ + The type of activity - what action was done by the member. This is a legacy field, use activity_type_key instead. + """ + activity_type: String + """ + The key for a custom activity type for the workspace. Will create a new activity type if it does not exist. + """ + activity_type_key: String + """Supply a key that must be unique or leave blank to have one generated.""" + key: String + """The date and time the activity occurred; defaults to now""" + occurred_at: String + properties: JSON + member: member_Input +} + +input member_Input { + bio: String + birthday: String + company: String + title: String + location: String + name: String + pronouns: String + shipping_address: String + slug: String + """Adds tags to member; comma-separated string or array""" + tags_to_add: String + """Replaces all tags for the member; comma-separated string or array""" + tags: String + """Deprecated: Please use the tags attribute instead""" + tag_list: String + tshirt: String + teammate: Boolean + url: String + """The member's GitHub username""" + github: String + """The member's Twitter username""" + twitter: String + """The member's email""" + email: String + """The member's LinkedIn username, without the in/ or pub/""" + linkedin: String + """The member's DEV username""" + devto: String +} + +input post_activity_with_member_Input { + """The url representing the post""" + url: String! + """The date and time at which the content was published; defaults to now""" + occurred_at: String + activity_type: content_const! + member: member_Input +} + +enum content_const @typescript(subgraph: "test", type: "\\"content\\"") @example(subgraph: "test", value: "\\"content\\"") { + content @enum(subgraph: "test", value: "\\"content\\"") +} + +""" +Represents an email address, a profile on networks like github and twitter, or a record in another system. +""" +input identity_Input { + """The name of the person in the source system""" + name: String + """ + The type of source: known values include github, twitter, discourse, email, linkedin, devto. Custom values can also be used + """ + source: String! + """ + Specifies the location of the source, such as the host of a Discourse instance + """ + source_host: String + """The username of the person in the source system""" + username: String + """The uid of the person in the source system""" + uid: String + """The email of the person in the source system""" + email: String + """ + For custom identities, an optional link to the profile on the source system + """ + url: String +} + +union post_workspace_slug_members_by_member_slug_activities_response @statusCodeTypeName(subgraph: "test", statusCode: 201, typeName: "post_workspace_slug_members_by_member_slug_activities_201_response") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "post_workspace_slug_members_by_member_slug_activities_422_response") = post_workspace_slug_members_by_member_slug_activities_201_response | post_workspace_slug_members_by_member_slug_activities_422_response + +type post_workspace_slug_members_by_member_slug_activities_201_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"ZngsdG\\",\\"type\\":\\"custom_activity\\",\\"attributes\\":{\\"action\\":\\"happened\\",\\"created_at\\":\\"2023-06-21T14:54:12.696Z\\",\\"key\\":\\"thing-123\\",\\"occurred_at\\":\\"2023-06-21T14:54:12.693Z\\",\\"updated_at\\":\\"2023-06-21T14:54:12.696Z\\",\\"type\\":\\"CustomActivity\\",\\"properties\\":{},\\"tags\\":[\\"product\\",\\"enterprise\\",\\"channel:custom\\",\\"custom_type:custom-type\\",\\"custom_title:did-a-thing\\"],\\"orbit_url\\":\\"http://localhost:3000/mrcamerontowne/activities/ZngsdG\\",\\"weight\\":\\"8.0\\",\\"custom_description\\":\\"More info about the thing\\",\\"custom_link\\":\\"http://link.com/\\",\\"custom_link_text\\":\\"See the thing\\",\\"custom_title\\":\\"Did a thing\\",\\"custom_type\\":\\"custom-type\\",\\"custom_context\\":null,\\"body\\":\\"More info about the thing\\"},\\"relationships\\":{\\"activity_type\\":{\\"data\\":{\\"id\\":\\"574seD\\",\\"type\\":\\"activity_type\\"}},\\"member\\":{\\"data\\":{\\"id\\":\\"45PSyv\\",\\"type\\":\\"member\\"}},\\"user\\":{\\"data\\":{\\"id\\":\\"l6pF69\\",\\"type\\":\\"user\\"}}}},\\"included\\":[{\\"id\\":\\"574seD\\",\\"type\\":\\"activity_type\\",\\"attributes\\":{\\"name\\":\\"Something happened\\",\\"short_name\\":\\"Custom\\",\\"key\\":\\"custom:happened\\",\\"channel\\":\\"custom\\",\\"source\\":\\"custom\\",\\"weight\\":\\"1.0\\"}},{\\"id\\":\\"45PSyv\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:12.664Z\\",\\"location\\":null,\\"name\\":\\"MrCharoletteLegros\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"mrcharolettelegros\\",\\"source\\":\\"installation\\",\\"tag_list\\":[],\\"tags\\":[],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:12.664Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/mrcamerontowne/members/mrcharolettelegros\\",\\"created\\":false,\\"id\\":\\"45PSyv\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":null,\\"github\\":null,\\"discourse\\":null,\\"email\\":null,\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[]},\\"organizations\\":{\\"data\\":[]}}},{\\"id\\":\\"l6pF69\\",\\"type\\":\\"user\\",\\"attributes\\":{\\"name\\":\\"VerniaOberbrunner\\",\\"updated_at\\":\\"2023-06-21T14:54:12.681Z\\",\\"created_at\\":\\"2023-06-21T14:54:12.675Z\\"}}]}") { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data + included: [mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items] +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data { + id: String + type: String + attributes: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_attributes { + action: String + created_at: DateTime + key: String + occurred_at: DateTime + updated_at: DateTime + type: String + properties: JSON + tags: [String] + orbit_url: URL + weight: String + custom_description: String + custom_link: URL + custom_link_text: String + custom_title: String + custom_type: String + custom_context: Void + body: String +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships { + activity_type: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type + member: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member + user: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_activity_type_data { + id: String + type: String +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_member_data { + id: String + type: String +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user { + data: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_data_relationships_user_data { + id: String + type: String +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items { + id: String + type: String + attributes: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_0_included_items_attributes { + name: String + short_name: String + key: URL + channel: String + source: String + weight: String +} + +type post_workspace_slug_members_by_member_slug_activities_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"custom_title\\":[\\"can't be blank\\"]}}") { + errors: mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_1_errors +} + +type mutation_post_workspace_slug_members_by_member_slug_activities_oneOf_1_errors { + custom_title: [String] +} + +input custom_or_post_activity_Input @oneOf(subgraph: "test") { + activity_Input: activity_Input + post_activity_Input: post_activity_Input +} + +input activity_Input { + """A description of the activity; displayed in the timeline""" + description: String + """A URL for the activity; displayed in the timeline""" + link: String + """The text for the timeline link""" + link_text: String + """A title for the activity; displayed in the timeline""" + title: String! + """A custom weight to be used in filters and reports; defaults to 1.""" + weight: String + """ + The type of activity - what action was done by the member. This is a legacy field, use activity_type_key instead. + """ + activity_type: String + """ + The key for a custom activity type for the workspace. Will create a new activity type if it does not exist. + """ + activity_type_key: String + """Supply a key that must be unique or leave blank to have one generated.""" + key: String + """The date and time the activity occurred; defaults to now""" + occurred_at: String + properties: JSON +} + +input post_activity_Input { + """The url representing the post""" + url: String! + """The date and time at which the content was published; defaults to now""" + occurred_at: String + activity_type: content_const! +} + +union put_workspace_slug_members_by_member_slug_activities_by_id_response @statusCodeTypeName(subgraph: "test", statusCode: 204, typeName: "Void_container") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "put_workspace_slug_members_by_member_slug_activities_by_id_422_response") = Void_container | put_workspace_slug_members_by_member_slug_activities_by_id_422_response + +type Void_container { + Void: Void @resolveRoot(subgraph: "test") +} + +type put_workspace_slug_members_by_member_slug_activities_by_id_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"custom_title\\":[\\"can't be blank\\"]}}") { + errors: mutation_put_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors +} + +type mutation_put_workspace_slug_members_by_member_slug_activities_by_id_oneOf_1_errors { + custom_title: [String] +} + +union post_workspace_slug_members_by_member_slug_identities_response @statusCodeTypeName(subgraph: "test", statusCode: 201, typeName: "post_workspace_slug_members_by_member_slug_identities_201_response") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "post_workspace_slug_members_by_member_slug_identities_422_response") = post_workspace_slug_members_by_member_slug_identities_201_response | post_workspace_slug_members_by_member_slug_identities_422_response + +type post_workspace_slug_members_by_member_slug_identities_201_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"1adTJn\\",\\"type\\":\\"other_identity\\",\\"attributes\\":{\\"uid\\":\\"12345\\",\\"email\\":\\"josh@orbit.love\\",\\"username\\":\\"dzello1\\",\\"name\\":\\"Josh\\",\\"source\\":\\"twitch\\",\\"source_host\\":\\"twitch.tv\\",\\"profile_url\\":null,\\"url\\":\\"https://twitch.tv/dzello1\\"}}}") { + data: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data +} + +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data { + id: String + type: String + attributes: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes +} + +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_0_data_attributes { + uid: String + email: EmailAddress + username: String + name: String + source: String + source_host: String + profile_url: Void + url: URL +} + +type post_workspace_slug_members_by_member_slug_identities_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"identity_id\\":[\\"has already been taken\\"]}}") { + errors: mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_1_errors +} + +type mutation_post_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { + identity_id: [String] +} + +union delete_workspace_slug_members_by_member_slug_identities_response @statusCodeTypeName(subgraph: "test", statusCode: 204, typeName: "Void_container") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "delete_workspace_slug_members_by_member_slug_identities_422_response") = Void_container | delete_workspace_slug_members_by_member_slug_identities_422_response + +type delete_workspace_slug_members_by_member_slug_identities_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"identity\\":[\\"is not attached to this member\\"]}}") { + errors: mutation_delete_workspace_slug_members_by_member_slug_identities_oneOf_1_errors +} + +type mutation_delete_workspace_slug_members_by_member_slug_identities_oneOf_1_errors { + identity: [String] +} + +type post_workspace_slug_members_by_member_slug_notes_201_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"qR4fVo\\",\\"type\\":\\"note\\",\\"attributes\\":{\\"id\\":\\"qR4fVo\\",\\"created_at\\":\\"2023-06-21T14:54:15.114Z\\",\\"body\\":\\"heyo\\",\\"updated_at\\":\\"2023-06-21T14:54:15.114Z\\"},\\"relationships\\":{\\"member\\":{\\"data\\":{\\"id\\":\\"jDdSYG\\",\\"type\\":\\"member\\"}},\\"user\\":{\\"data\\":{\\"id\\":\\"ZgeFNz\\",\\"type\\":\\"user\\"}}}}}") { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data { + id: String + type: String + attributes: mutation_post_workspace_slug_members_by_member_slug_notes_data_attributes + relationships: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_attributes { + id: String + created_at: DateTime + body: String + updated_at: DateTime +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships { + member: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member + user: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member_data +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_member_data { + id: String + type: String +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user { + data: mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user_data +} + +type mutation_post_workspace_slug_members_by_member_slug_notes_data_relationships_user_data { + id: String + type: String +} + +input note_Input { + body: String! +} + +union post_workspace_slug_members_response @statusCodeTypeName(subgraph: "test", statusCode: 200, typeName: "post_workspace_slug_members_200_response") @statusCodeTypeName(subgraph: "test", statusCode: 201, typeName: "post_workspace_slug_members_201_response") @statusCodeTypeName(subgraph: "test", statusCode: 422, typeName: "post_workspace_slug_members_422_response") = post_workspace_slug_members_200_response | post_workspace_slug_members_201_response | post_workspace_slug_members_422_response + +type post_workspace_slug_members_200_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"4ndS8E\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"http://github.com/avatar.png\\",\\"bio\\":null,\\"birthday\\":null,\\"company\\":null,\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:26.095Z\\",\\"location\\":null,\\"name\\":\\"LissetteMoen\\",\\"pronouns\\":null,\\"reach\\":0,\\"shipping_address\\":null,\\"slug\\":\\"lissettemoen\\",\\"source\\":\\"installation\\",\\"tag_list\\":[\\"one\\",\\"two\\"],\\"tags\\":[\\"one\\",\\"two\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:26.173Z\\",\\"merged_at\\":null,\\"url\\":null,\\"orbit_url\\":\\"http://localhost:3000/gerrywalkersr/members/lissettemoen\\",\\"created\\":false,\\"id\\":\\"4ndS8E\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":\\"dzello\\",\\"github\\":\\"dzello\\",\\"discourse\\":null,\\"email\\":\\"dzello@orbit.love\\",\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":null,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"5ENTeK\\",\\"type\\":\\"github_identity\\"},{\\"id\\":\\"nZRTEp\\",\\"type\\":\\"twitter_identity\\"},{\\"id\\":\\"nqaT7d\\",\\"type\\":\\"email_identity\\"}]},\\"organizations\\":{\\"data\\":[]}}},\\"included\\":[{\\"id\\":\\"5ENTeK\\",\\"type\\":\\"github_identity\\",\\"attributes\\":{\\"uid\\":\\"uid-72\\",\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":null,\\"source\\":\\"github\\",\\"source_host\\":\\"github.com\\",\\"profile_url\\":\\"https://github.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"nZRTEp\\",\\"type\\":\\"twitter_identity\\",\\"attributes\\":{\\"uid\\":null,\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":null,\\"source\\":\\"twitter\\",\\"source_host\\":\\"twitter.com\\",\\"profile_url\\":\\"https://twitter.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"nqaT7d\\",\\"type\\":\\"email_identity\\",\\"attributes\\":{\\"uid\\":\\"dzello@orbit.love\\",\\"email\\":\\"dzello@orbit.love\\",\\"username\\":null,\\"name\\":\\"dzello\\",\\"source\\":\\"email\\",\\"source_host\\":\\"email.host\\",\\"profile_url\\":\\"mailto:dzello@orbit.love\\",\\"url\\":null}}]}") { + data: mutation_post_workspace_slug_members_oneOf_0_data + included: [mutation_post_workspace_slug_members_oneOf_0_included_items] +} + +type mutation_post_workspace_slug_members_oneOf_0_data { + id: String + type: String + attributes: mutation_post_workspace_slug_members_oneOf_0_data_attributes + relationships: mutation_post_workspace_slug_members_oneOf_0_data_relationships +} + +type mutation_post_workspace_slug_members_oneOf_0_data_attributes { + avatar_url: URL + bio: Void + birthday: Void + company: Void + title: Void + created_at: DateTime + location: Void + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [String] + tags: [String] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: Void + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: String + github: String + discourse: Void + email: EmailAddress + devto: Void + linkedin: Void + discord: Void + github_followers: Void + twitter_followers: Void + topics: Void + languages: Void +} + +type mutation_post_workspace_slug_members_oneOf_0_data_relationships { + identities: mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities + organizations: mutation_post_workspace_slug_members_oneOf_0_data_relationships_organizations +} + +type mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities { + data: [mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities_data_items] +} + +type mutation_post_workspace_slug_members_oneOf_0_data_relationships_identities_data_items { + id: String + type: String +} + +type mutation_post_workspace_slug_members_oneOf_0_data_relationships_organizations { + data: [JSON] +} + +type mutation_post_workspace_slug_members_oneOf_0_included_items { + id: String + type: String + attributes: mutation_post_workspace_slug_members_oneOf_0_included_items_attributes +} + +type mutation_post_workspace_slug_members_oneOf_0_included_items_attributes { + uid: String + email: Void + username: String + name: Void + source: String + source_host: String + profile_url: URL + url: Void +} + +type post_workspace_slug_members_201_response @example(subgraph: "test", value: "{\\"data\\":{\\"id\\":\\"40mSvV\\",\\"type\\":\\"member\\",\\"attributes\\":{\\"avatar_url\\":\\"https://avatars2.githubusercontent.com/u/174777?u=79e423dd07c19122115f52a1c97727ca193e6253&v=4\\",\\"bio\\":\\"Co-founder & CTO @orbit-love · Developer Advocate · formerly @algolia and @keen\\",\\"birthday\\":null,\\"company\\":\\"Orbit\\",\\"title\\":null,\\"created_at\\":\\"2023-06-21T14:54:25.770Z\\",\\"location\\":\\"Paris\\",\\"name\\":\\"Josh Dzielak\\",\\"pronouns\\":null,\\"reach\\":8,\\"shipping_address\\":null,\\"slug\\":\\"dzello\\",\\"source\\":\\"api\\",\\"tag_list\\":[\\"one\\",\\"two\\"],\\"tags\\":[\\"one\\",\\"two\\"],\\"teammate\\":false,\\"tshirt\\":null,\\"updated_at\\":\\"2023-06-21T14:54:25.848Z\\",\\"merged_at\\":null,\\"url\\":\\"https://dzello.com/\\",\\"orbit_url\\":\\"http://localhost:3000/msvirgilkoss/members/dzello\\",\\"created\\":true,\\"id\\":\\"40mSvV\\",\\"orbit_level\\":null,\\"love\\":null,\\"first_activity_occurred_at\\":null,\\"last_activity_occurred_at\\":null,\\"activities_count\\":0,\\"activities_score\\":0,\\"twitter\\":\\"dzello\\",\\"github\\":\\"dzello\\",\\"discourse\\":null,\\"email\\":\\"josh@orbit.love\\",\\"devto\\":null,\\"linkedin\\":null,\\"discord\\":null,\\"github_followers\\":171,\\"twitter_followers\\":null,\\"topics\\":null,\\"languages\\":null},\\"relationships\\":{\\"identities\\":{\\"data\\":[{\\"id\\":\\"1ADTwV\\",\\"type\\":\\"github_identity\\"},{\\"id\\":\\"3RgTbZ\\",\\"type\\":\\"twitter_identity\\"},{\\"id\\":\\"3YETyv\\",\\"type\\":\\"email_identity\\"}]},\\"organizations\\":{\\"data\\":[{\\"id\\":\\"n9WF2V\\",\\"type\\":\\"organization\\"}]}}},\\"included\\":[{\\"id\\":\\"1ADTwV\\",\\"type\\":\\"github_identity\\",\\"attributes\\":{\\"uid\\":\\"174777\\",\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":\\"Josh Dzielak\\",\\"source\\":\\"github\\",\\"source_host\\":\\"github.com\\",\\"profile_url\\":\\"https://github.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"3RgTbZ\\",\\"type\\":\\"twitter_identity\\",\\"attributes\\":{\\"uid\\":null,\\"email\\":null,\\"username\\":\\"dzello\\",\\"name\\":null,\\"source\\":\\"twitter\\",\\"source_host\\":\\"twitter.com\\",\\"profile_url\\":\\"https://twitter.com/dzello\\",\\"url\\":null}},{\\"id\\":\\"3YETyv\\",\\"type\\":\\"email_identity\\",\\"attributes\\":{\\"uid\\":\\"josh@orbit.love\\",\\"email\\":\\"josh@orbit.love\\",\\"username\\":null,\\"name\\":\\"josh\\",\\"source\\":\\"email\\",\\"source_host\\":\\"email.host\\",\\"profile_url\\":\\"mailto:josh@orbit.love\\",\\"url\\":null}}]}") { + data: mutation_post_workspace_slug_members_oneOf_1_data + included: [mutation_post_workspace_slug_members_oneOf_1_included_items] +} + +type mutation_post_workspace_slug_members_oneOf_1_data { + id: String + type: String + attributes: mutation_post_workspace_slug_members_oneOf_1_data_attributes + relationships: mutation_post_workspace_slug_members_oneOf_1_data_relationships +} + +type mutation_post_workspace_slug_members_oneOf_1_data_attributes { + avatar_url: URL + bio: String + birthday: Void + company: String + title: Void + created_at: DateTime + location: String + name: String + pronouns: Void + reach: Int + shipping_address: Void + slug: String + source: String + tag_list: [String] + tags: [String] + teammate: Boolean + tshirt: Void + updated_at: DateTime + merged_at: Void + url: URL + orbit_url: URL + created: Boolean + id: String + orbit_level: Void + love: Void + first_activity_occurred_at: Void + last_activity_occurred_at: Void + activities_count: Int + activities_score: Int + twitter: String + github: String + discourse: Void + email: EmailAddress + devto: Void + linkedin: Void + discord: Void + github_followers: Int + twitter_followers: Void + topics: Void + languages: Void +} + +type mutation_post_workspace_slug_members_oneOf_1_data_relationships { + identities: mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities + organizations: mutation_post_workspace_slug_members_oneOf_1_data_relationships_organizations +} + +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities { + data: [mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities_data_items] +} + +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_identities_data_items { + id: String + type: String +} + +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_organizations { + data: [mutation_post_workspace_slug_members_oneOf_1_data_relationships_organizations_data_items] +} + +type mutation_post_workspace_slug_members_oneOf_1_data_relationships_organizations_data_items { + id: String + type: String +} + +type mutation_post_workspace_slug_members_oneOf_1_included_items { + id: String + type: String + attributes: mutation_post_workspace_slug_members_oneOf_1_included_items_attributes +} + +type mutation_post_workspace_slug_members_oneOf_1_included_items_attributes { + uid: String + email: Void + username: String + name: String + source: String + source_host: String + profile_url: URL + url: Void +} + +type post_workspace_slug_members_422_response @example(subgraph: "test", value: "{\\"errors\\":{\\"email\\":[\\"is invalid\\"],\\"name\\":[\\"can't be blank\\"]}}") { + errors: mutation_post_workspace_slug_members_oneOf_2_errors +} + +type mutation_post_workspace_slug_members_oneOf_2_errors { + email: [String] + name: [String] +} + +input member_and_identity_Input { + member: member_Input + identity: identity_Input +} + +input organization_Input { + """ + The current stage of the organization in the marketing or sales process. + """ + lifecycle_stage: String! + """The date the organization became a customer.""" + deal_closed_date: String + """The pricing plan the organization is on.""" + price_plan: String + """The unique identifier of the organization in your CRM.""" + crm_uid: String + """A link to the organization profile in your CRM.""" + crm_url: String! + """The name of the team member who is in charge of the organization.""" + owner_name: String + """The email of the team member who is in charge of the organization.""" + owner_email: String + """The name of the CRM you use for tracking the organization.""" + source: String! +} + +input webhook_subscription_Input { + name: String! + url: String! + secret: String + event_type: String! + activity_types: [String] + activity_tags: [String] + member_tags: [String] +} + +scalar ObjMap + +enum HTTPMethod { + GET + HEAD + POST + PUT + DELETE + CONNECT + OPTIONS + TRACE + PATCH +}" +`; diff --git a/packages/loaders/openapi/tests/fixtures/orbit.json b/packages/loaders/openapi/tests/fixtures/orbit.json new file mode 100644 index 0000000000000..4a1845d0e8bce --- /dev/null +++ b/packages/loaders/openapi/tests/fixtures/orbit.json @@ -0,0 +1,3625 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "Orbit API", + "version": "v1", + "description": "Please see the complete Orbit API documentation at [https://api.orbit.love/](https://api.orbit.love/)." + }, + "tags": [ + { "name": "Activity Types" }, + { "name": "Activities" }, + { "name": "Webhooks" }, + { "name": "Members" }, + { "name": "Notes" }, + { "name": "Organizations" }, + { "name": "Reports" }, + { "name": "Users" }, + { "name": "Workspaces" } + ], + "components": { + "securitySchemes": { + "bearer": { + "type": "http", + "scheme": "bearer", + "description": "Provide a Authorization header with format 'Bearer '. This is the recommended approach. Make sure to include the 'Bearer' part in the text box here." + }, + "api_key": { + "type": "apiKey", + "name": "api_key", + "in": "query", + "description": "Provide the API key in a query param called api_key. This is the least secure method, please use only for testing." + } + }, + "schemas": { + "activity": { + "title": "Custom Activity", + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "A description of the activity; displayed in the timeline" + }, + "link": { + "type": "string", + "description": "A URL for the activity; displayed in the timeline" + }, + "link_text": { "type": "string", "description": "The text for the timeline link" }, + "title": { + "type": "string", + "description": "A title for the activity; displayed in the timeline" + }, + "weight": { + "type": "string", + "description": "A custom weight to be used in filters and reports; defaults to 1." + }, + "activity_type": { + "type": "string", + "description": "The type of activity - what action was done by the member. This is a legacy field, use activity_type_key instead." + }, + "activity_type_key": { + "type": "string", + "description": "The key for a custom activity type for the workspace. Will create a new activity type if it does not exist." + }, + "key": { + "type": "string", + "description": "Supply a key that must be unique or leave blank to have one generated." + }, + "occurred_at": { + "type": "string", + "description": "The date and time the activity occurred; defaults to now" + }, + "properties": { + "type": "object", + "description": "Key-value pairs to provide contextual metadata about an activity." + } + }, + "required": ["title"] + }, + "activity_with_member": { + "title": "Custom Activity", + "allOf": [ + { "$ref": "#/components/schemas/activity" }, + { + "type": "object", + "properties": { "member": { "$ref": "#/components/schemas/member" } } + } + ] + }, + "post_activity": { + "title": "Content Activity", + "type": "object", + "properties": { + "url": { "type": "string", "description": "The url representing the post" }, + "occurred_at": { + "type": "string", + "description": "The date and time at which the content was published; defaults to now" + }, + "activity_type": { "type": "string", "enum": ["content"] } + }, + "required": ["url", "activity_type"] + }, + "post_activity_with_member": { + "title": "Content Activity", + "allOf": [ + { "$ref": "#/components/schemas/post_activity" }, + { + "type": "object", + "properties": { "member": { "$ref": "#/components/schemas/member" } } + } + ] + }, + "custom_or_post_activity": { + "oneOf": [ + { "$ref": "#/components/schemas/activity" }, + { "$ref": "#/components/schemas/post_activity" } + ] + }, + "alert": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "event_type": { "type": "string" }, + "activity_types": { "type": "array", "items": { "type": "string" } }, + "member_tags": { "type": "array", "items": { "type": "string" } } + }, + "required": ["name"] + }, + "destination": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "url": { "type": "string" }, + "alerts": { "type": "array", "items": { "$ref": "#/components/schemas/alert" } } + }, + "required": ["name", "url"] + }, + "webhook_subscription": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "url": { "type": "string" }, + "secret": { "type": "string" }, + "event_type": { "type": "string" }, + "activity_types": { "type": "array", "items": { "type": "string" } }, + "activity_tags": { "type": "array", "items": { "type": "string" } }, + "member_tags": { "type": "array", "items": { "type": "string" } } + }, + "required": ["name", "event_type", "url"] + }, + "member": { + "type": "object", + "properties": { + "bio": { "type": "string" }, + "birthday": { "type": "string" }, + "company": { "type": "string" }, + "title": { "type": "string" }, + "location": { "type": "string" }, + "name": { "type": "string" }, + "pronouns": { "type": "string" }, + "shipping_address": { "type": "string" }, + "slug": { "type": "string" }, + "tags_to_add": { + "type": "string", + "description": "Adds tags to member; comma-separated string or array" + }, + "tags": { + "type": "string", + "description": "Replaces all tags for the member; comma-separated string or array" + }, + "tag_list": { + "type": "string", + "description": "Deprecated: Please use the tags attribute instead" + }, + "tshirt": { "type": "string" }, + "teammate": { "type": "boolean" }, + "url": { "type": "string" }, + "github": { "type": "string", "description": "The member's GitHub username" }, + "twitter": { "type": "string", "description": "The member's Twitter username" }, + "email": { "type": "string", "description": "The member's email" }, + "linkedin": { + "type": "string", + "description": "The member's LinkedIn username, without the in/ or pub/" + }, + "devto": { "type": "string", "description": "The member's DEV username" } + } + }, + "identity": { + "type": "object", + "description": "Represents an email address, a profile on networks like github and twitter, or a record in another system.", + "properties": { + "name": { + "type": "string", + "description": "The name of the person in the source system" + }, + "source": { + "type": "string", + "description": "The type of source: known values include github, twitter, discourse, email, linkedin, devto. Custom values can also be used" + }, + "source_host": { + "type": "string", + "description": "Specifies the location of the source, such as the host of a Discourse instance" + }, + "username": { + "type": "string", + "description": "The username of the person in the source system" + }, + "uid": { "type": "string", "description": "The uid of the person in the source system" }, + "email": { + "type": "string", + "description": "The email of the person in the source system" + }, + "url": { + "type": "string", + "description": "For custom identities, an optional link to the profile on the source system" + } + }, + "required": ["source"] + }, + "member_and_identity": { + "type": "object", + "properties": { + "member": { "$ref": "#/components/schemas/member" }, + "identity": { "$ref": "#/components/schemas/identity" } + } + }, + "activity_and_identity": { + "type": "object", + "properties": { + "activity": { + "oneOf": [ + { "$ref": "#/components/schemas/activity_with_member" }, + { "$ref": "#/components/schemas/post_activity_with_member" } + ] + }, + "identity": { "$ref": "#/components/schemas/identity" } + } + }, + "note": { + "type": "object", + "properties": { "body": { "type": "string" } }, + "required": ["body"] + }, + "organization": { + "type": "object", + "properties": { + "lifecycle_stage": { + "type": "string", + "description": "The current stage of the organization in the marketing or sales process." + }, + "deal_closed_date": { + "type": "string", + "description": "The date the organization became a customer." + }, + "price_plan": { + "type": "string", + "description": "The pricing plan the organization is on." + }, + "crm_uid": { + "type": "string", + "description": "The unique identifier of the organization in your CRM." + }, + "crm_url": { + "type": "string", + "description": "A link to the organization profile in your CRM." + }, + "owner_name": { + "type": "string", + "description": "The name of the team member who is in charge of the organization." + }, + "owner_email": { + "type": "string", + "description": "The email of the team member who is in charge of the organization." + }, + "source": { + "type": "string", + "description": "The name of the CRM you use for tracking the organization." + } + }, + "required": ["lifecycle_stage", "crm_url", "source"] + } + } + }, + "paths": { + "/user": { + "get": { + "summary": "Get info about the current user", + "tags": ["Users"], + "security": [{ "bearer": [] }], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "Ze1FV4", + "type": "user", + "attributes": { + "name": "AnnaleeWolf", + "updated_at": "2023-06-21T14:54:03.908Z", + "created_at": "2023-06-21T14:54:03.908Z", + "email": "carlie.jacobi@ryan.net" + } + } + } + } + } + }, + "401": { "description": "unauthorized" } + } + } + }, + "/{workspace_slug}/activities": { + "get": { + "summary": "List activities for a workspace", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "affiliation", + "in": "query", + "schema": { "type": "string", "enum": ["member", "teammate"] } + }, + { + "name": "member_tags", + "in": "query", + "description": "The list of tags to filter against. Separate tags with `,` to do an intersection (AND), or with `|` to do a union (OR)", + "schema": { "type": "string" } + }, + { + "name": "orbit", + "in": "query", + "description": "The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like `23` would include levels 2 and 3. `n` is for members with no orbit level.", + "schema": { "type": "string" } + }, + { + "name": "activity_type", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "issue_comment:created", + "pull_requests:opened", + "pull_requests:merged", + "fork:created", + "star:created", + "discussions:discussion_created", + "discussions:comment", + "discussions:reply", + "discord:message:sent", + "tweet:sent", + "twitter:followed", + "discord:thread:replied", + "discord:message:replied", + "discord:server:joined", + "discourse:topic:created", + "discourse:post:created", + "discourse:post:liked", + "discourse:user:created", + "discord:forum:post_created", + "slack:message:sent", + "slack:thread:replied", + "slack:channel:joined", + "custom:happened", + "dev:comment", + "dev:followed", + "insided:article:created", + "insided:article:replied", + "insided:conversation:started", + "insided:conversation:replied", + "insided:idea:replied", + "insided:question:asked", + "insided:idea:submitted", + "linkedin:comment", + "reddit:comment", + "insided:question:replied", + "reddit:post", + "stackoverflow:answer", + "stackoverflow:question", + "youtube:comment", + "note:created", + "post:created", + "issues:opened" + ] + }, + "description": "Comma separated list of activity types" + }, + { + "name": "identity", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "github", + "twitter", + "email", + "discourse", + "linkedin", + "devto", + "slack", + "discord" + ] + } + }, + { + "name": "company[]", + "in": "query", + "description": "Comma separated list of companies. The union (OR) of companies is applied.", + "schema": { "type": "string" } + }, + { + "name": "title[]", + "in": "query", + "description": "Comma separated list of job titles. The union (OR) of job titles is applied.", + "schema": { "type": "string" } + }, + { + "name": "regions[]", + "in": "query", + "description": "Comma separated list of regions. The union (OR) of regions is applied.", + "schema": { "type": "string" } + }, + { + "name": "countries[]", + "in": "query", + "description": "Comma separated list of countries. The union (OR) of countries is applied.", + "schema": { "type": "string" } + }, + { + "name": "cities[]", + "in": "query", + "description": "Comma separated list of cities. The union (OR) of cities is applied.", + "schema": { "type": "string" } + }, + { + "name": "start_date", + "in": "query", + "description": "Filter activities after this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "end_date", + "in": "query", + "description": "Filter activities before this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "relative", + "in": "query", + "description": "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days.", + "schema": { "type": "string" } + }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "direction", + "in": "query", + "schema": { "type": "string", "enum": ["ASC", "DESC"] } + }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + }, + { + "name": "sort", + "in": "query", + "schema": { "type": "string", "enum": ["occurred_at", "member"] } + }, + { + "name": "type", + "in": "query", + "deprecated": true, + "description": "Deprecated in favor of the activity_type parameter.", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "63rsLp", + "type": "issue_activity", + "attributes": { + "action": "opened", + "created_at": "2023-06-21T14:54:04.584Z", + "key": "wayne/collene#55", + "occurred_at": "2023-06-21T14:54:04.579Z", + "updated_at": "2023-06-21T14:54:04.584Z", + "type": "IssueActivity", + "properties": { + "github_issue": "wayne/collene/#55", + "github_repository": "wayne/collene", + "github_organization": "wayne" + }, + "tags": [ + "channel:github", + "github_organization:wayne", + "github_repository:wayne/collene", + "github_issue:wayne/collene/#55" + ], + "orbit_url": "http://localhost:3000/avelinawiza/activities/63rsLp", + "weight": "1.0", + "activity_link": "https://github.com/", + "g_title": "Cool issue title!", + "g_number": 55, + "g_html_url": "https://github.com/", + "g_created_at": "2023-06-21T15:54:04.579+01:00", + "is_pull_request": null + }, + "relationships": { + "activity_type": { "data": { "id": "la4sVD", "type": "activity_type" } }, + "member": { "data": { "id": "By3S5j", "type": "member" } }, + "repository": { "data": { "id": "jP8TMj", "type": "repository" } } + } + }, + { + "id": "V5YsvV", + "type": "pull_request_activity", + "attributes": { + "action": "opened", + "created_at": "2023-06-21T14:54:04.524Z", + "key": "jason/hermine#72", + "occurred_at": "2023-06-21T14:54:04.508Z", + "updated_at": "2023-06-21T14:54:04.524Z", + "type": "PullRequestActivity", + "properties": { + "github_repository": "jason/hermine", + "github_organization": "jason", + "github_pull_request": "jason/hermine/#72" + }, + "tags": [ + "channel:github", + "github_organization:jason", + "github_repository:jason/hermine", + "github_pull_request:jason/hermine/#72" + ], + "orbit_url": "http://localhost:3000/avelinawiza/activities/V5YsvV", + "weight": "1.0", + "activity_link": "https://github.com/", + "g_title": "Cool PR title!", + "g_number": 72, + "g_html_url": "https://github.com/", + "g_created_at": "2023-06-21T15:54:04.508+01:00", + "is_pull_request": null, + "g_merged": true, + "g_merged_at": null, + "g_merged_by": null + }, + "relationships": { + "activity_type": { "data": { "id": "lnrs0l", "type": "activity_type" } }, + "member": { "data": { "id": "By3S5j", "type": "member" } }, + "repository": { "data": { "id": "6l3Tz9", "type": "repository" } } + } + }, + { + "id": "6a4sBp", + "type": "spec_activity", + "attributes": { + "action": "spec_action", + "created_at": "2023-06-21T14:54:04.438Z", + "key": "clé", + "occurred_at": "2023-06-21T14:54:04.437Z", + "updated_at": "2023-06-21T14:54:04.438Z", + "type": "SpecActivity", + "properties": { "prop_1": "value_1", "prop_2": "value_2" }, + "tags": ["spec-tag-1", "spec-tag-2"], + "orbit_url": "http://localhost:3000/avelinawiza/activities/6a4sBp", + "weight": "1.0" + }, + "relationships": { + "activity_type": { "data": { "id": "D2Esq5", "type": "activity_type" } }, + "member": { "data": { "id": "By3S5j", "type": "member" } }, + "repository": { "data": { "id": "jBlTg9", "type": "repository" } } + } + } + ], + "included": [ + { + "id": "la4sVD", + "type": "activity_type", + "attributes": { + "name": "Opened an issue", + "short_name": "Issue opened", + "key": "issues:opened", + "channel": "github", + "source": "github", + "weight": "6.0" + } + }, + { + "id": "By3S5j", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:04.391Z", + "location": null, + "name": "JolineLang", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "jolinelang", + "source": "installation", + "tag_list": ["ruby"], + "tags": ["ruby"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:04.391Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/avelinawiza/members/jolinelang", + "created": false, + "id": "By3S5j", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + }, + { + "id": "jP8TMj", + "type": "repository", + "attributes": { + "owner": "see", + "name": "tyrell", + "full_name": "see/tyrell", + "updated_at": "2023-06-21T14:54:04.577Z", + "created_at": "2023-06-21T14:54:04.577Z" + } + }, + { + "id": "lnrs0l", + "type": "activity_type", + "attributes": { + "name": "persuade Mysource 3", + "short_name": "Spec Channel", + "key": "spec:happened:1", + "channel": "mysource", + "source": "mysource", + "weight": "1.0" + } + }, + { + "id": "6l3Tz9", + "type": "repository", + "attributes": { + "owner": "andreasbernier", + "name": "timmybatz", + "full_name": "andreasbernier/timmybatz", + "updated_at": "2023-06-21T14:54:04.496Z", + "created_at": "2023-06-21T14:54:04.496Z" + } + }, + { + "id": "D2Esq5", + "type": "activity_type", + "attributes": { + "name": "qualify Mysource 2", + "short_name": "Spec Channel", + "key": "spec_activity_type_key", + "channel": "mysource", + "source": "mysource", + "weight": "1.0" + } + }, + { + "id": "jBlTg9", + "type": "repository", + "attributes": { + "owner": "randolph", + "name": "bruna", + "full_name": "orbit-love/orbit-model", + "updated_at": "2023-06-21T14:54:04.419Z", + "created_at": "2023-06-21T14:54:04.419Z" + } + } + ], + "links": { + "first": "http://localhost:3000/api/v1/avelinawiza/activities?activity_type=&affiliation=&cities%5B%5D=&company%5B%5D=&countries%5B%5D=&direction=DESC&end_date=&filters=true&identity=&items=10&member_tags=&orbit=&page=1®ions%5B%5D=&relative=&sort=occurred_at&start_date=&title%5B%5D=&workspace=avelinawiza", + "prev": null, + "next": null + } + } + } + } + } + } + }, + "post": { + "summary": "Create a Custom or a Content activity for a new or existing member", + "tags": ["Activities"], + "description": "Use this method when you know an identity of the member (github, email, twitter, etc.) but not their Orbit ID. Pass fields in the member object to update the member in addition to creating the activity.", + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "422": { + "description": "unprocessable", + "content": { + "application/json": { + "example": { + "errors": { + "base": [ + "Either identity or member name, email, GitHub, Twitter or Discourse is required" + ] + } + } + } + } + }, + "201": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "6zoslV", + "type": "custom_activity", + "attributes": { + "action": "happened", + "created_at": "2023-06-21T14:54:08.263Z", + "key": "thing-123", + "occurred_at": "2023-06-21T14:54:08.255Z", + "updated_at": "2023-06-21T14:54:08.263Z", + "type": "CustomActivity", + "properties": {}, + "tags": [ + "product", + "enterprise", + "channel:custom", + "custom_type:custom-type", + "custom_title:did-a-thing" + ], + "orbit_url": "http://localhost:3000/mscalandrabrekke/activities/6zoslV", + "weight": "0.2", + "custom_description": "More info about the thing", + "custom_link": "http://link.com/", + "custom_link_text": "See the thing", + "custom_title": "Did a thing", + "custom_type": "custom-type", + "custom_context": null, + "body": "More info about the thing" + }, + "relationships": { + "activity_type": { "data": { "id": "574seD", "type": "activity_type" } }, + "member": { "data": { "id": "r9nS0B", "type": "member" } }, + "user": { "data": { "id": "DXKFEz", "type": "user" } } + } + }, + "included": [ + { + "id": "574seD", + "type": "activity_type", + "attributes": { + "name": "Something happened", + "short_name": "Custom", + "key": "custom:happened", + "channel": "custom", + "source": "custom", + "weight": "1.0" + } + }, + { + "id": "3YETv3", + "type": "twitter_identity", + "attributes": { + "uid": "45297280", + "email": null, + "username": "dzello", + "name": "Josh Dzielak", + "source": "twitter", + "source_host": "twitter.com", + "profile_url": "https://twitter.com/dzello", + "url": null + } + }, + { + "id": "r9nS0B", + "type": "member", + "attributes": { + "avatar_url": "https://abs.twimg.com/sticky/default_profile_images/default_profile.png", + "bio": "dzello.com/blog/2020/05/3… Co-founder & CTO @OrbitModel · advocate for dev advocates 🥑 · formerly @algolia and @keen_io · Ruby · Rails · JAMstack · he/him", + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:08.167Z", + "location": "Paris, France", + "name": "Josh Dzielak", + "pronouns": null, + "reach": 1, + "shipping_address": null, + "slug": "dzello", + "source": "api", + "tag_list": ["one", "two"], + "tags": ["one", "two"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:08.191Z", + "merged_at": null, + "url": "https://dzello.com/blog/2020/05/30/black-lives-matter/", + "orbit_url": "http://localhost:3000/mscalandrabrekke/members/dzello", + "created": true, + "id": "r9nS0B", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": "dzello", + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": 9, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [{ "id": "3YETv3", "type": "twitter_identity" }] }, + "organizations": { "data": [] } + } + }, + { + "id": "DXKFEz", + "type": "user", + "attributes": { + "name": "DiedreHettinger", + "updated_at": "2023-06-21T14:54:08.087Z", + "created_at": "2023-06-21T14:54:08.081Z" + } + } + ] + } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/activity_and_identity" } + } + } + } + } + }, + "/{workspace_slug}/activities/{id}": { + "get": { + "summary": "Get an activity in the workspace", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "ZPosjV", + "type": "spec_activity", + "attributes": { + "action": "spec_action", + "created_at": "2023-06-21T14:54:07.274Z", + "key": "clé", + "occurred_at": "2023-06-21T14:54:07.264Z", + "updated_at": "2023-06-21T14:54:07.274Z", + "type": "SpecActivity", + "properties": { "prop_1": "value_1", "prop_2": "value_2" }, + "tags": ["spec-tag-1", "spec-tag-2"], + "orbit_url": "http://localhost:3000/markitasauer/activities/ZPosjV", + "weight": "1.0" + }, + "relationships": { + "activity_type": { "data": { "id": "D3jsky", "type": "activity_type" } }, + "member": { "data": { "id": "rmMSRr", "type": "member" } }, + "repository": { "data": { "id": "9ABTo6", "type": "repository" } }, + "user": { "data": { "id": "OA3F51", "type": "user" } } + } + }, + "included": [ + { + "id": "D3jsky", + "type": "activity_type", + "attributes": { + "name": "take Mysource 29", + "short_name": "Spec Channel", + "key": "spec:happened:9", + "channel": "mysource", + "source": "mysource", + "weight": "1.0" + } + }, + { + "id": "rmMSRr", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:07.270Z", + "location": null, + "name": "AudieDare", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "audiedare", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:07.270Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/markitasauer/members/audiedare", + "created": false, + "id": "rmMSRr", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + }, + { + "id": "9ABTo6", + "type": "repository", + "attributes": { + "owner": "leo", + "name": "vernettaprohaska", + "full_name": "leo/vernettaprohaska", + "updated_at": "2023-06-21T14:54:07.226Z", + "created_at": "2023-06-21T14:54:07.226Z" + } + }, + { + "id": "OA3F51", + "type": "user", + "attributes": { + "name": "ClarettaKunzeIII", + "updated_at": "2023-06-21T14:54:07.203Z", + "created_at": "2023-06-21T14:54:07.195Z" + } + } + ] + } + } + } + } + } + } + }, + "/{workspace_slug}/activity_types": { + "get": { + "summary": "List all activity types for a workspace", + "tags": ["Activity Types"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "5Gds1O", + "type": "activity_type", + "attributes": { + "name": "Created content", + "short_name": "Content created", + "key": "post:created", + "channel": "content", + "source": "content", + "weight": "1.0" + } + }, + { + "id": "DOnsmL", + "type": "activity_type", + "attributes": { + "name": "Activated their account on product", + "short_name": "Activated account", + "key": "activated_account", + "channel": "product", + "source": "product", + "weight": "6.0" + } + } + ], + "links": { + "first": "/alejandrawehner/activity_types?page=1", + "last": "/alejandrawehner/activity_types?page=1", + "prev": null, + "next": null + } + } + } + } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}/activities": { + "get": { + "summary": "List activities for a member", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "direction", + "in": "query", + "schema": { "type": "string", "enum": ["ASC", "DESC"] } + }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + }, + { + "name": "sort", + "in": "query", + "schema": { "type": "string", "enum": ["occurred_at", "member"] } + }, + { "name": "activity_type", "in": "query", "schema": { "type": "string" } }, + { + "name": "type", + "in": "query", + "deprecated": true, + "description": "Deprecated in favor of the activity_type parameter.", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "VlEsOe", + "type": "spec_activity", + "attributes": { + "action": "spec_action", + "created_at": "2023-06-21T14:54:11.610Z", + "key": "clé", + "occurred_at": "2023-06-21T14:54:11.609Z", + "updated_at": "2023-06-21T14:54:11.610Z", + "type": "SpecActivity", + "properties": { "prop_1": "value_1", "prop_2": "value_2" }, + "tags": ["spec-tag-1", "spec-tag-2"], + "orbit_url": "http://localhost:3000/parishuelphd/activities/VlEsOe", + "weight": "1.0" + }, + "relationships": { + "activity_type": { "data": { "id": "oQQsBb", "type": "activity_type" } }, + "member": { "data": { "id": "BloSvr", "type": "member" } } + } + } + ], + "included": [ + { + "id": "oQQsBb", + "type": "activity_type", + "attributes": { + "name": "opine Mysource 34", + "short_name": "Spec Channel", + "key": "spec:activity", + "channel": "mysource", + "source": "mysource", + "weight": "1.0" + } + }, + { + "id": "BloSvr", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:11.551Z", + "location": null, + "name": "DelphaLegros", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "delphalegros", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:11.551Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/parishuelphd/members/delphalegros", + "created": false, + "id": "BloSvr", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + } + ], + "links": { + "first": "/parishuelphd/members/delphalegros/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=spec%3Aactivity&type=", + "last": "/parishuelphd/members/delphalegros/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=spec%3Aactivity&type=", + "prev": null, + "next": null + } + } + } + } + } + } + }, + "post": { + "summary": "Create a Custom or a Content activity for a member", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "201": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "ZngsdG", + "type": "custom_activity", + "attributes": { + "action": "happened", + "created_at": "2023-06-21T14:54:12.696Z", + "key": "thing-123", + "occurred_at": "2023-06-21T14:54:12.693Z", + "updated_at": "2023-06-21T14:54:12.696Z", + "type": "CustomActivity", + "properties": {}, + "tags": [ + "product", + "enterprise", + "channel:custom", + "custom_type:custom-type", + "custom_title:did-a-thing" + ], + "orbit_url": "http://localhost:3000/mrcamerontowne/activities/ZngsdG", + "weight": "8.0", + "custom_description": "More info about the thing", + "custom_link": "http://link.com/", + "custom_link_text": "See the thing", + "custom_title": "Did a thing", + "custom_type": "custom-type", + "custom_context": null, + "body": "More info about the thing" + }, + "relationships": { + "activity_type": { "data": { "id": "574seD", "type": "activity_type" } }, + "member": { "data": { "id": "45PSyv", "type": "member" } }, + "user": { "data": { "id": "l6pF69", "type": "user" } } + } + }, + "included": [ + { + "id": "574seD", + "type": "activity_type", + "attributes": { + "name": "Something happened", + "short_name": "Custom", + "key": "custom:happened", + "channel": "custom", + "source": "custom", + "weight": "1.0" + } + }, + { + "id": "45PSyv", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:12.664Z", + "location": null, + "name": "MrCharoletteLegros", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "mrcharolettelegros", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:12.664Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/mrcamerontowne/members/mrcharolettelegros", + "created": false, + "id": "45PSyv", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + }, + { + "id": "l6pF69", + "type": "user", + "attributes": { + "name": "VerniaOberbrunner", + "updated_at": "2023-06-21T14:54:12.681Z", + "created_at": "2023-06-21T14:54:12.675Z" + } + } + ] + } + } + } + }, + "422": { + "description": "unprocessable entity", + "content": { + "application/json": { + "example": { "errors": { "custom_title": ["can't be blank"] } } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/custom_or_post_activity" } + } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}/activities/{id}": { + "delete": { + "summary": "Delete a post activity", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "activity deleted" }, + "403": { "description": "forbidden" } + } + }, + "put": { + "summary": "Update a custom activity for a member", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "activity updated" }, + "422": { + "description": "unprocessable entity", + "content": { + "application/json": { + "example": { "errors": { "custom_title": ["can't be blank"] } } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/activity" } } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}/identities": { + "post": { + "summary": "Add identity to a member", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "201": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "1adTJn", + "type": "other_identity", + "attributes": { + "uid": "12345", + "email": "josh@orbit.love", + "username": "dzello1", + "name": "Josh", + "source": "twitch", + "source_host": "twitch.tv", + "profile_url": null, + "url": "https://twitch.tv/dzello1" + } + } + } + } + } + }, + "422": { + "description": "identity is invalid", + "content": { + "application/json": { + "example": { "errors": { "identity_id": ["has already been taken"] } } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/identity" } } + } + } + }, + "delete": { + "summary": "Remove identity from a member", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "identity deleted" }, + "422": { + "description": "identity is invalid or not attached to member", + "content": { + "application/json": { + "example": { "errors": { "identity": ["is not attached to this member"] } } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/identity" } } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}/notes": { + "post": { + "summary": "Create a note", + "tags": ["Notes"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "201": { + "description": "note created", + "content": { + "application/json": { + "example": { + "data": { + "id": "qR4fVo", + "type": "note", + "attributes": { + "id": "qR4fVo", + "created_at": "2023-06-21T14:54:15.114Z", + "body": "heyo", + "updated_at": "2023-06-21T14:54:15.114Z" + }, + "relationships": { + "member": { "data": { "id": "jDdSYG", "type": "member" } }, + "user": { "data": { "id": "ZgeFNz", "type": "user" } } + } + } + } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/note" } } } + } + }, + "get": { + "summary": "Get the member's notes", + "tags": ["Notes"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "page", "in": "query", "schema": { "type": "string" } } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "o5Nf2J", + "type": "note", + "attributes": { + "id": "o5Nf2J", + "created_at": "2023-06-21T14:54:15.417Z", + "body": "heyo", + "updated_at": "2023-06-21T14:54:15.417Z" + }, + "relationships": { + "member": { "data": { "id": "jPESm8", "type": "member" } }, + "user": { "data": { "id": "lqAFn8", "type": "user" } } + } + } + ], + "included": [ + { + "id": "jPESm8", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:15.397Z", + "location": null, + "name": "MsKirkKemmer", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "mskirkkemmer", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:15.397Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/mariahturner/members/mskirkkemmer", + "created": false, + "id": "jPESm8", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + }, + { + "id": "lqAFn8", + "type": "user", + "attributes": { + "name": "TristanBreitenberg", + "updated_at": "2023-06-21T14:54:15.415Z", + "created_at": "2023-06-21T14:54:15.409Z" + } + } + ], + "links": { + "first": "/mariahturner/members/mskirkkemmer/notes?page=1", + "last": "/mariahturner/members/mskirkkemmer/notes?page=1", + "prev": null, + "next": null + } + } + } + } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}/notes/{id}": { + "put": { + "summary": "Update a note", + "tags": ["Notes"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { "204": { "description": "note updated" } }, + "requestBody": { + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/note" } } } + } + } + }, + "/{workspace_slug}/members": { + "get": { + "summary": "List members in a workspace", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "affiliation", + "in": "query", + "schema": { "type": "string", "enum": ["member", "teammate"] } + }, + { + "name": "member_tags", + "in": "query", + "description": "The list of tags to filter against. Separate tags with `,` to do an intersection (AND), or with `|` to do a union (OR)", + "schema": { "type": "string" } + }, + { + "name": "orbit", + "in": "query", + "description": "The list of orbit levels to filter against. Accepted values are 1, 2, 3, 4, n. In the request, a format like `23` would include levels 2 and 3. `n` is for members with no orbit level.", + "schema": { "type": "string" } + }, + { + "name": "activity_type", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "issue_comment:created", + "pull_requests:opened", + "pull_requests:merged", + "fork:created", + "star:created", + "discussions:discussion_created", + "discussions:comment", + "discussions:reply", + "discord:message:sent", + "tweet:sent", + "twitter:followed", + "discord:thread:replied", + "discord:message:replied", + "discord:server:joined", + "discourse:topic:created", + "discourse:post:created", + "discourse:post:liked", + "discourse:user:created", + "discord:forum:post_created", + "slack:message:sent", + "slack:thread:replied", + "slack:channel:joined", + "custom:happened", + "dev:comment", + "dev:followed", + "insided:article:created", + "insided:article:replied", + "insided:conversation:started", + "insided:conversation:replied", + "insided:idea:replied", + "insided:question:asked", + "insided:idea:submitted", + "linkedin:comment", + "reddit:comment", + "insided:question:replied", + "reddit:post", + "stackoverflow:answer", + "stackoverflow:question", + "youtube:comment", + "note:created", + "post:created", + "issues:opened" + ] + }, + "description": "Comma separated list of activity types" + }, + { + "name": "identity", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "github", + "twitter", + "email", + "discourse", + "linkedin", + "devto", + "slack", + "discord" + ] + } + }, + { + "name": "company[]", + "in": "query", + "description": "Comma separated list of companies. The union (OR) of companies is applied.", + "schema": { "type": "string" } + }, + { + "name": "title[]", + "in": "query", + "description": "Comma separated list of job titles. The union (OR) of job titles is applied.", + "schema": { "type": "string" } + }, + { + "name": "regions[]", + "in": "query", + "description": "Comma separated list of regions. The union (OR) of regions is applied.", + "schema": { "type": "string" } + }, + { + "name": "countries[]", + "in": "query", + "description": "Comma separated list of countries. The union (OR) of countries is applied.", + "schema": { "type": "string" } + }, + { + "name": "cities[]", + "in": "query", + "description": "Comma separated list of cities. The union (OR) of cities is applied.", + "schema": { "type": "string" } + }, + { + "name": "start_date", + "in": "query", + "description": "Filter activities after this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "end_date", + "in": "query", + "description": "Filter activities before this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "relative", + "in": "query", + "description": "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days.", + "schema": { "type": "string" } + }, + { "name": "query", "in": "query", "schema": { "type": "string" } }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "direction", + "in": "query", + "schema": { "type": "string", "enum": ["ASC", "DESC"] } + }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + }, + { "name": "activities_count_min", "in": "query", "schema": { "type": "string" } }, + { "name": "activities_count_max", "in": "query", "schema": { "type": "string" } }, + { + "name": "sort", + "in": "query", + "schema": { + "type": "string", + "enum": [ + "activities_count", + "company", + "created_at", + "first_activity", + "github_followers", + "id", + "last_activity", + "location", + "love", + "name", + "orbit", + "reach", + "title", + "twitter_followers", + "updated_at" + ] + } + }, + { + "name": "type", + "in": "query", + "deprecated": true, + "description": "Deprecated in favor of the activity_type parameter.", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "jaPSJy", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": "PuraRutherford", + "title": null, + "created_at": "2023-06-21T14:54:15.875Z", + "location": null, + "name": "Sally", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "sally", + "source": "installation", + "tag_list": ["ruby"], + "tags": ["ruby"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:15.883Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/herschelmosciskidvm/members/sally", + "created": false, + "id": "jaPSJy", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": "2023-06-19T14:54:15.967Z", + "last_activity_occurred_at": "2023-06-21T13:54:15.993Z", + "activities_count": 2, + "activities_score": 2.0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [{ "id": "5geTxn", "type": "spec_identity" }] }, + "organizations": { "data": [{ "id": "aWQFAB", "type": "organization" }] } + } + }, + { + "id": "4EzSdZ", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:15.858Z", + "location": null, + "name": "Josh", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "josh", + "source": "installation", + "tag_list": ["ruby"], + "tags": ["ruby"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:15.866Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/herschelmosciskidvm/members/josh", + "created": false, + "id": "4EzSdZ", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": "2023-06-13T14:54:15.945Z", + "last_activity_occurred_at": "2023-06-17T14:54:15.888Z", + "activities_count": 3, + "activities_score": 3.0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [{ "id": "nbWTe1", "type": "spec_identity" }] }, + "organizations": { "data": [] } + } + } + ], + "included": [ + { "id": "43", "type": "spec_identity" }, + { + "id": "aWQFAB", + "type": "organization", + "attributes": { + "id": "aWQFAB", + "name": "PuraRutherford", + "website": "example-1.com", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:16.047Z", + "updated_at": "2023-06-21T14:54:16.047Z", + "lifecycle_stage": null, + "deal_closed_date": null, + "price_plan": null, + "crm_uid": null, + "crm_url": null, + "owner_name": null, + "owner_email": null, + "source": null + } + }, + { "id": "42", "type": "spec_identity" } + ], + "links": { + "first": "http://localhost:3000/api/v1/herschelmosciskidvm/members?activities_count_max=99&activities_count_min=1&activity_type=type%3Anew%2Cspec%3Aactivity&affiliation=&cities%5B%5D=&company%5B%5D=&countries%5B%5D=&direction=DESC&end_date=&identity=&items=10&member_tags=ruby%7Crails%2C-go&orbit=&page=1&query=®ions%5B%5D=&relative=&sort=last_activity&start_date=&title%5B%5D=&workspace=herschelmosciskidvm", + "prev": null, + "next": null + } + } + } + } + } + } + }, + "post": { + "summary": "Create or update a member", + "tags": ["Members"], + "description": "This method is useful when you know a member's identity in another system and want to create or update the corresponding Orbit member. Identities can be specified in the identity object or member attributes like member.github. If no member exists, a new member will be created and linked to any provided identities.", + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "201": { + "description": "created", + "content": { + "application/json": { + "example": { + "data": { + "id": "40mSvV", + "type": "member", + "attributes": { + "avatar_url": "https://avatars2.githubusercontent.com/u/174777?u=79e423dd07c19122115f52a1c97727ca193e6253&v=4", + "bio": "Co-founder & CTO @orbit-love · Developer Advocate · formerly @algolia and @keen", + "birthday": null, + "company": "Orbit", + "title": null, + "created_at": "2023-06-21T14:54:25.770Z", + "location": "Paris", + "name": "Josh Dzielak", + "pronouns": null, + "reach": 8, + "shipping_address": null, + "slug": "dzello", + "source": "api", + "tag_list": ["one", "two"], + "tags": ["one", "two"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:25.848Z", + "merged_at": null, + "url": "https://dzello.com/", + "orbit_url": "http://localhost:3000/msvirgilkoss/members/dzello", + "created": true, + "id": "40mSvV", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": "dzello", + "github": "dzello", + "discourse": null, + "email": "josh@orbit.love", + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": 171, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { + "data": [ + { "id": "1ADTwV", "type": "github_identity" }, + { "id": "3RgTbZ", "type": "twitter_identity" }, + { "id": "3YETyv", "type": "email_identity" } + ] + }, + "organizations": { "data": [{ "id": "n9WF2V", "type": "organization" }] } + } + }, + "included": [ + { + "id": "1ADTwV", + "type": "github_identity", + "attributes": { + "uid": "174777", + "email": null, + "username": "dzello", + "name": "Josh Dzielak", + "source": "github", + "source_host": "github.com", + "profile_url": "https://github.com/dzello", + "url": null + } + }, + { + "id": "3RgTbZ", + "type": "twitter_identity", + "attributes": { + "uid": null, + "email": null, + "username": "dzello", + "name": null, + "source": "twitter", + "source_host": "twitter.com", + "profile_url": "https://twitter.com/dzello", + "url": null + } + }, + { + "id": "3YETyv", + "type": "email_identity", + "attributes": { + "uid": "josh@orbit.love", + "email": "josh@orbit.love", + "username": null, + "name": "josh", + "source": "email", + "source_host": "email.host", + "profile_url": "mailto:josh@orbit.love", + "url": null + } + } + ] + } + } + } + }, + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "4ndS8E", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:26.095Z", + "location": null, + "name": "LissetteMoen", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "lissettemoen", + "source": "installation", + "tag_list": ["one", "two"], + "tags": ["one", "two"], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:26.173Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/gerrywalkersr/members/lissettemoen", + "created": false, + "id": "4ndS8E", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": "dzello", + "github": "dzello", + "discourse": null, + "email": "dzello@orbit.love", + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { + "data": [ + { "id": "5ENTeK", "type": "github_identity" }, + { "id": "nZRTEp", "type": "twitter_identity" }, + { "id": "nqaT7d", "type": "email_identity" } + ] + }, + "organizations": { "data": [] } + } + }, + "included": [ + { + "id": "5ENTeK", + "type": "github_identity", + "attributes": { + "uid": "uid-72", + "email": null, + "username": "dzello", + "name": null, + "source": "github", + "source_host": "github.com", + "profile_url": "https://github.com/dzello", + "url": null + } + }, + { + "id": "nZRTEp", + "type": "twitter_identity", + "attributes": { + "uid": null, + "email": null, + "username": "dzello", + "name": null, + "source": "twitter", + "source_host": "twitter.com", + "profile_url": "https://twitter.com/dzello", + "url": null + } + }, + { + "id": "nqaT7d", + "type": "email_identity", + "attributes": { + "uid": "dzello@orbit.love", + "email": "dzello@orbit.love", + "username": null, + "name": "dzello", + "source": "email", + "source_host": "email.host", + "profile_url": "mailto:dzello@orbit.love", + "url": null + } + } + ] + } + } + } + }, + "422": { + "description": "unprocessable", + "content": { + "application/json": { + "example": { "errors": { "email": ["is invalid"], "name": ["can't be blank"] } } + } + } + }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/member_and_identity" } } + } + } + } + }, + "/{workspace_slug}/members/{member_slug}": { + "get": { + "summary": "Get a member", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "jWXSAW", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": "LindyOrn", + "title": null, + "created_at": "2023-06-21T14:54:22.753Z", + "location": null, + "name": "Josh", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "josh", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:22.753Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/ezekielwalshdds/members/josh", + "created": false, + "id": "jWXSAW", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [{ "id": "nZRTEE", "type": "spec_identity" }] }, + "organizations": { "data": [{ "id": "BqkFva", "type": "organization" }] } + } + }, + "included": [ + { "id": "90", "type": "spec_identity" }, + { + "id": "BqkFva", + "type": "organization", + "attributes": { + "id": "BqkFva", + "name": "LindyOrn", + "website": "example-25.com", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:22.773Z", + "updated_at": "2023-06-21T14:54:22.773Z", + "lifecycle_stage": null, + "deal_closed_date": null, + "price_plan": null, + "crm_uid": null, + "crm_url": null, + "owner_name": null, + "owner_email": null, + "source": null + } + } + ] + } + } + } + } + } + }, + "put": { + "summary": "Update a member", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "member updated" }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/member" } } } + } + }, + "delete": { + "summary": "Delete a member", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "member_slug", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "member deleted" }, + "403": { "description": "forbidden" } + } + } + }, + "/{workspace_slug}/members/find": { + "get": { + "summary": "Find a member by an identity", + "tags": ["Members"], + "description": "Provide a source and one of username/uid/email params to return a member with that identity, if one exists. Common values for source include github, twitter, and email.", + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "source", "in": "query", "schema": { "type": "string" } }, + { "name": "source_host", "in": "query", "schema": { "type": "string" } }, + { "name": "uid", "in": "query", "schema": { "type": "string" } }, + { "name": "username", "in": "query", "schema": { "type": "string" } }, + { "name": "email", "in": "query", "schema": { "type": "string" } }, + { + "name": "github", + "in": "query", + "description": "Deprecated, please use source=github and username= instead", + "schema": { "type": "string" } + } + ], + "responses": { + "404": { + "description": "Not found", + "content": { + "application/json": { + "example": { "errors": "No member matching this identity was found" } + } + } + }, + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "rRxS6X", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": "orbit", + "title": null, + "created_at": "2023-06-21T14:54:36.087Z", + "location": null, + "name": "StanOConnerSr", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "stanoconnersr", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:36.087Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/jonaslindmd/members/stanoconnersr", + "created": false, + "id": "rRxS6X", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": "dzello", + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [{ "id": "1JrTad", "type": "github_identity" }] }, + "organizations": { "data": [{ "id": "nb0FmD", "type": "organization" }] } + } + }, + "included": [ + { + "id": "1JrTad", + "type": "github_identity", + "attributes": { + "uid": "uid-82", + "email": null, + "username": "dzello", + "name": null, + "source": "github", + "source_host": "github.com", + "profile_url": "https://github.com/dzello", + "url": null + } + }, + { + "id": "nb0FmD", + "type": "organization", + "attributes": { + "id": "nb0FmD", + "name": "orbit", + "website": "orbit.love", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:36.110Z", + "updated_at": "2023-06-21T14:54:36.110Z", + "lifecycle_stage": null, + "deal_closed_date": null, + "price_plan": null, + "crm_uid": null, + "crm_url": null, + "owner_name": null, + "owner_email": null, + "source": null + } + } + ] + } + } + } + } + } + } + }, + "/{workspace_slug}/notes": { + "get": { + "summary": "List all notes for all members in a workspace", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { "200": { "description": "success" } } + } + }, + "/{workspace_slug}/organizations/{organization_id}/activities": { + "get": { + "summary": "List member activities in an organization", + "tags": ["Activities"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "direction", + "in": "query", + "schema": { "type": "string", "enum": ["ASC", "DESC"] } + }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + }, + { + "name": "sort", + "in": "query", + "schema": { "type": "string", "enum": ["occurred_at", "member"] } + }, + { + "name": "activity_type", + "in": "query", + "schema": { + "type": "string", + "enum": ["content", "custom", "discord", "discourse", "github", "slack", "twitter"] + } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "pjLsLQ", + "type": "discord_message_sent_activity", + "attributes": { + "action": "sent", + "created_at": "2023-06-21T14:54:37.280Z", + "key": "1015015099", + "occurred_at": "2023-06-20T14:54:37.241Z", + "updated_at": "2023-06-21T14:54:37.280Z", + "type": "DiscordMessageSentActivity", + "properties": { + "discord_server": "Orbit-Sandbox", + "discord_channel": "general" + }, + "tags": [ + "channel:discord", + "discord_server:Orbit Sandbox", + "discord_channel:general" + ], + "orbit_url": "http://localhost:3000/brandieschmelerii/activities/pjLsLQ", + "weight": "0.5", + "activity_link": "https://discord.com/channels/823735870825037844/823735870825037847/1015015099", + "body": "Hello world", + "body_html": "Hello world" + }, + "relationships": { + "activity_type": { "data": { "id": "DzaseX", "type": "activity_type" } }, + "member": { "data": { "id": "BwNSO9", "type": "member" } } + } + }, + { + "id": "6ARs9g", + "type": "discord_message_sent_activity", + "attributes": { + "action": "sent", + "created_at": "2023-06-21T14:54:37.423Z", + "key": "3401081985", + "occurred_at": "2023-06-19T14:54:37.396Z", + "updated_at": "2023-06-21T14:54:37.423Z", + "type": "DiscordMessageSentActivity", + "properties": { + "discord_server": "Orbit-Sandbox", + "discord_channel": "general" + }, + "tags": [ + "channel:discord", + "discord_server:Orbit Sandbox", + "discord_channel:general" + ], + "orbit_url": "http://localhost:3000/brandieschmelerii/activities/6ARs9g", + "weight": "0.5", + "activity_link": "https://discord.com/channels/823735870825037844/823735870825037847/3401081985", + "body": "Hello world", + "body_html": "Hello world" + }, + "relationships": { + "activity_type": { "data": { "id": "DzaseX", "type": "activity_type" } }, + "member": { "data": { "id": "r9nSZ9", "type": "member" } } + } + }, + { + "id": "VWesGO", + "type": "github_activity", + "attributes": { + "action": "created", + "created_at": "2023-06-21T14:54:37.369Z", + "key": "github_activity_key:9", + "occurred_at": "2023-06-18T14:54:37.301Z", + "updated_at": "2023-06-21T14:54:37.369Z", + "type": "GithubActivity", + "properties": { + "github_repository": "vincenzapfeffer/rosana", + "github_organization": "vincenzapfeffer" + }, + "tags": [ + "channel:github", + "github_organization:vincenzapfeffer", + "github_repository:vincenzapfeffer/rosana" + ], + "orbit_url": "http://localhost:3000/brandieschmelerii/activities/VWesGO", + "weight": "1.0", + "activity_link": "https://github.com/vincenzapfeffer/rosana" + }, + "relationships": { + "activity_type": { "data": { "id": "owxs43", "type": "activity_type" } }, + "member": { "data": { "id": "BwNSO9", "type": "member" } }, + "repository": { "data": { "id": "9mPTrn", "type": "repository" } } + } + } + ], + "included": [ + { + "id": "DzaseX", + "type": "activity_type", + "attributes": { + "name": "Sent a message in Discord", + "short_name": "Discord message", + "key": "discord:message:sent", + "channel": "discord", + "source": "discord", + "weight": "1.0" + } + }, + { + "id": "BwNSO9", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": "Organization1", + "title": null, + "created_at": "2023-06-21T14:54:37.231Z", + "location": null, + "name": "John Doe", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "john-doe", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:37.231Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/brandieschmelerii/members/john-doe", + "created": false, + "id": "BwNSO9", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [{ "id": "nRRFKv", "type": "organization" }] } + } + }, + { + "id": "r9nSZ9", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": "Organization1", + "title": null, + "created_at": "2023-06-21T14:54:37.384Z", + "location": null, + "name": "Jane Smith", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "jane-smith", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:37.384Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/brandieschmelerii/members/jane-smith", + "created": false, + "id": "r9nSZ9", + "orbit_level": null, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [{ "id": "nRRFKv", "type": "organization" }] } + } + }, + { + "id": "owxs43", + "type": "activity_type", + "attributes": { + "name": "patch Mysource 101", + "short_name": "Spec Channel", + "key": "spec:happened:13", + "channel": "mysource", + "source": "mysource", + "weight": "1.0" + } + } + ], + "links": { + "first": "/brandieschmelerii/organizations/nRRFKv/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=", + "last": "/brandieschmelerii/organizations/nRRFKv/activities?page=1&direction=DESC&items=10&sort=occurred_at&activity_type=", + "prev": null, + "next": null + } + } + } + } + } + } + } + }, + "/{workspace_slug}/organizations/{organization_id}/members": { + "get": { + "summary": "List members in an organization", + "tags": ["Members"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "jPESdn", + "type": "member", + "attributes": { + "id": "jPESdn", + "slug": "jane-smith", + "name": "Jane Smith", + "last_activity_occurred_at": null, + "activities_score": 0 + }, + "relationships": {} + }, + { + "id": "jYbS8E", + "type": "member", + "attributes": { + "id": "jYbS8E", + "slug": "john-doe", + "name": "John Doe", + "last_activity_occurred_at": null, + "activities_score": 0 + }, + "relationships": {} + } + ], + "links": { + "first": "/mrfernjohns/organizations/BqkFkv/members?page=1&items=10", + "last": "/mrfernjohns/organizations/BqkFkv/members?page=1&items=10", + "prev": null, + "next": null + } + } + } + } + } + } + } + }, + "/{workspace_slug}/organizations": { + "get": { + "summary": "List organizations in a workspace", + "tags": ["Organizations"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "query", "in": "query", "schema": { "type": "string" } }, + { "name": "page", "in": "query", "schema": { "type": "string" } }, + { + "name": "direction", + "in": "query", + "schema": { "type": "string", "enum": ["ASC", "DESC"] } + }, + { + "name": "items", + "in": "query", + "schema": { "type": "string", "enum": ["10", "50", "100"] } + }, + { + "name": "sort", + "in": "query", + "schema": { + "type": "string", + "enum": ["name", "website", "members_count", "employees_count"] + } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "n5ZF98", + "type": "organization", + "attributes": { + "id": "n5ZF98", + "name": "Organization2", + "website": "org2.example.com", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:41.767Z", + "updated_at": "2023-06-21T14:54:41.767Z", + "lifecycle_stage": null, + "deal_closed_date": null, + "price_plan": null, + "crm_uid": null, + "crm_url": null, + "owner_name": null, + "owner_email": null, + "source": null + } + }, + { + "id": "V02F9A", + "type": "organization", + "attributes": { + "id": "V02F9A", + "name": "Organization1", + "website": "org1.example.com", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:41.746Z", + "updated_at": "2023-06-21T14:54:41.746Z", + "lifecycle_stage": "customer", + "deal_closed_date": "2023-06-21T14:54:41.805Z", + "price_plan": "Enterprise", + "crm_uid": "abcde123451", + "crm_url": "https://example.com/1", + "owner_name": "John Toto", + "owner_email": "john.toto@example.com", + "source": "Fake CRM" + } + } + ], + "links": { + "first": "http://localhost:3000/api/v1/dorindaabshire/organizations?direction=DESC&items=10&page=1&query=&sort=name&workspace=dorindaabshire", + "prev": null, + "next": null + } + } + } + } + } + } + } + }, + "/{workspace_slug}/organizations/{organization_id}": { + "get": { + "summary": "Get an organization", + "tags": ["Organizations"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "aWQFlA", + "type": "organization", + "attributes": { + "id": "aWQFlA", + "name": "Organization1", + "website": "example-47.com", + "logo_url": null, + "members_count": 1, + "employees_count": null, + "organization_type": null, + "industry": null, + "estimated_annual_revenue": null, + "founded_in": null, + "location": null, + "twitter": null, + "twitter_followers": null, + "facebook": null, + "facebook_followers": null, + "linkedin": null, + "crunchbase": null, + "email_addresses": null, + "last_active": null, + "active_since": null, + "created_at": "2023-06-21T14:54:42.605Z", + "updated_at": "2023-06-21T14:54:42.605Z", + "lifecycle_stage": null, + "deal_closed_date": null, + "price_plan": null, + "crm_uid": null, + "crm_url": null, + "owner_name": null, + "owner_email": null, + "source": null + } + } + } + } + } + } + } + }, + "put": { + "summary": "Update an organization", + "tags": ["Organizations"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "organization_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "204": { "description": "organization updated" }, + "422": { "description": "deal_closed_date is invalid" }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/organization" } } + } + } + } + }, + "/{workspace_slug}/reports": { + "get": { + "summary": "Get a workspace stats", + "tags": ["Reports"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "start_date", + "in": "query", + "description": "Filter activities after this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "end_date", + "in": "query", + "description": "Filter activities before this date. Format: YYYY-MM-DD.", + "schema": { "type": "string" } + }, + { + "name": "relative", + "in": "query", + "description": "Relative timeframes. Format: this__, with period in [days, weeks, months, years]. For example, this_30_days.", + "schema": { "type": "string" } + }, + { "name": "properties", "in": "query", "schema": { "type": "string" } }, + { "name": "activity_type", "in": "query", "schema": { "type": "string" } }, + { + "name": "type", + "in": "query", + "deprecated": true, + "description": "Deprecated in favor of the activity_type parameter.", + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "1XOtmn", + "type": "statistics", + "attributes": { + "workspace_id": "1XOtmn", + "timeframe": { + "start_date": "2023-05-22", + "end_date": "2023-06-21", + "start_date_last": "2023-04-21", + "end_date_last": "2023-05-21" + }, + "overview": { + "total_members_count": 1, + "members_on_orbit_level_1_count": 0, + "members_on_orbit_level_2_count": 0, + "members_on_orbit_level_3_count": 0, + "members_on_orbit_level_4_count": 0, + "members_on_orbit_level_none_count": 1 + }, + "members": { + "active_count": 1, + "active_delta": 0, + "new_count": 1, + "new_delta": 0, + "returning_count": 0, + "returning_delta": 0 + }, + "activities": { + "total_count": 1, + "total_delta": 0, + "spec:activity": { + "source": "mysource", + "count": 1, + "delta": 0, + "members": { + "active_count": 1, + "active_delta": 0, + "new_count": 1, + "new_delta": 0, + "returning_count": 0, + "returning_delta": 0 + } + }, + "foo:activity": { + "source": "mysource", + "count": 0, + "delta": 0, + "members": { + "active_count": 0, + "active_delta": 0, + "new_count": 0, + "new_delta": 0, + "returning_count": 0, + "returning_delta": 0 + } + } + } + } + } + } + } + } + } + } + } + }, + "/{workspace_slug}/webhooks": { + "get": { + "summary": "List webhooks in a workspace", + "tags": ["Webhooks"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "6qyFL6", + "type": "webhook", + "attributes": { + "name": "My Test Webhook", + "enabled": true, + "updated_at": "2023-06-21T14:54:45.434Z", + "created_at": "2023-06-21T14:54:45.434Z", + "event_type": "activity:created", + "url": "https://example.com/hook", + "activity_types": [], + "activity_tags": [], + "member_tags": [], + "activity_keywords": [], + "include_teammates": false + } + } + ], + "links": { + "first": "/fake-workspace/webhooks?page=1", + "last": "/fake-workspace/webhooks?page=1", + "prev": null, + "next": null + } + } + } + } + } + } + }, + "post": { + "summary": "Create a webhook", + "tags": ["Webhooks"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "201": { "description": "webhook created" }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook_subscription" } + } + } + } + } + }, + "/{workspace_slug}/webhooks/{id}": { + "get": { + "summary": "Get a webhook", + "tags": ["Webhooks"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "6ZbFM6", + "type": "webhook", + "attributes": { + "name": "My Test Webhook", + "enabled": true, + "updated_at": "2023-06-21T14:54:45.849Z", + "created_at": "2023-06-21T14:54:45.849Z", + "event_type": "activity:created", + "url": "https://example.com/hook", + "activity_types": [], + "activity_tags": [], + "member_tags": [], + "activity_keywords": [], + "include_teammates": false + } + } + } + } + } + } + } + }, + "put": { + "summary": "Update a webhook", + "tags": ["Webhooks"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "webhook updated" }, + "403": { "description": "forbidden" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook_subscription" } + } + } + } + }, + "delete": { + "summary": "Delete a webhook", + "tags": ["Webhooks"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } + ], + "responses": { + "204": { "description": "webhook deleted" }, + "403": { "description": "forbidden" } + } + } + }, + "/workspaces": { + "get": { + "summary": "Get all workspaces for the current user", + "tags": ["Workspaces"], + "security": [{ "bearer": [] }], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": [ + { + "id": "15Vt67", + "type": "workspace", + "attributes": { + "name": "Fake Workspace", + "slug": "fake-workspace", + "updated_at": "2023-06-21T14:54:46.429Z", + "created_at": "2023-06-21T14:54:46.423Z" + }, + "relationships": { "repositories": { "data": [] } } + } + ], + "included": [] + } + } + } + } + } + } + }, + "/workspaces/{workspace_slug}": { + "get": { + "summary": "Get a workspace", + "tags": ["Workspaces"], + "security": [{ "bearer": [] }], + "parameters": [ + { + "name": "workspace_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "include_orbit_level_counts", + "in": "query", + "description": "Include the number of members by Orbit Level in the attributes", + "schema": { "type": "boolean" } + } + ], + "responses": { + "200": { + "description": "success", + "content": { + "application/json": { + "example": { + "data": { + "id": "PvetbL", + "type": "workspace", + "attributes": { + "name": "Fake Workspace", + "slug": "fake-workspace", + "updated_at": "2023-06-21T14:54:46.807Z", + "created_at": "2023-06-21T14:54:46.662Z", + "members_count": 4, + "activities_count": 1, + "tags": {}, + "orbit_level_counts": { "1": 0, "2": 0, "3": 1, "4": 2 } + }, + "relationships": { + "last_member": { "data": { "id": "jMNSnV", "type": "member" } }, + "last_activity": { + "data": { "id": "ZPosrL", "type": "pull_request_activity" } + }, + "repositories": { "data": [] } + } + }, + "included": [ + { + "id": "jMNSnV", + "type": "member", + "attributes": { + "avatar_url": "http://github.com/avatar.png", + "bio": null, + "birthday": null, + "company": null, + "title": null, + "created_at": "2023-06-21T14:54:46.781Z", + "location": null, + "name": "LurlineGreenfelder", + "pronouns": null, + "reach": 0, + "shipping_address": null, + "slug": "lurlinegreenfelder", + "source": "installation", + "tag_list": [], + "tags": [], + "teammate": false, + "tshirt": null, + "updated_at": "2023-06-21T14:54:46.781Z", + "merged_at": null, + "url": null, + "orbit_url": "http://localhost:3000/fake-workspace/members/lurlinegreenfelder", + "created": false, + "id": "jMNSnV", + "orbit_level": 4, + "love": null, + "first_activity_occurred_at": null, + "last_activity_occurred_at": null, + "activities_count": 0, + "activities_score": 0, + "twitter": null, + "github": null, + "discourse": null, + "email": null, + "devto": null, + "linkedin": null, + "discord": null, + "github_followers": null, + "twitter_followers": null, + "topics": null, + "languages": null + }, + "relationships": { + "identities": { "data": [] }, + "organizations": { "data": [] } + } + }, + { + "id": "ZPosrL", + "type": "pull_request_activity", + "attributes": { + "action": "opened", + "created_at": "2023-06-21T14:54:46.735Z", + "key": "raleighturner/denny#75", + "occurred_at": "2023-06-21T14:54:46.723Z", + "updated_at": "2023-06-21T14:54:46.735Z", + "type": "PullRequestActivity", + "properties": { + "github_repository": "raleighturner/denny", + "github_organization": "raleighturner", + "github_pull_request": "raleighturner/denny/#75" + }, + "tags": [ + "channel:github", + "github_organization:raleighturner", + "github_repository:raleighturner/denny", + "github_pull_request:raleighturner/denny/#75" + ], + "orbit_url": "http://localhost:3000/fake-workspace/activities/ZPosrL", + "weight": "1.0", + "activity_link": "https://github.com/", + "g_title": "Here is some new code", + "g_number": 75, + "g_html_url": "https://github.com/", + "g_created_at": "2023-06-21T15:54:46.723+01:00", + "is_pull_request": null, + "g_merged": false, + "g_merged_at": null, + "g_merged_by": null + }, + "relationships": { + "activity_type": { "data": { "id": "oWVsm9", "type": "activity_type" } }, + "member": { "data": { "id": "jL5SZA", "type": "member" } }, + "repository": { "data": { "id": "6eeTk6", "type": "repository" } } + } + } + ] + } + } + } + } + } + } + } + }, + "servers": [{ "url": "https://app.orbit.love/api/v1" }] +} diff --git a/packages/loaders/openapi/tests/mime-type-with-version.test.ts b/packages/loaders/openapi/tests/mime-type-with-version.test.ts new file mode 100644 index 0000000000000..6ab6138070c6c --- /dev/null +++ b/packages/loaders/openapi/tests/mime-type-with-version.test.ts @@ -0,0 +1,15 @@ +import { join } from 'path'; +import { printSchemaWithDirectives } from '@graphql-tools/utils'; +import { loadGraphQLSchemaFromOpenAPI } from '../src/loadGraphQLSchemaFromOpenAPI'; + +describe('MIME Type with Version', () => { + it('generates the schema correctly', async () => { + const schema = await loadGraphQLSchemaFromOpenAPI('test', { + source: join(__dirname, './fixtures/orbit.json'), + operationHeaders: { + accept: 'application/json;v=2', + }, + }); + expect(printSchemaWithDirectives(schema)).toMatchSnapshot(); + }); +});