@wundergraph/cosmo-connect 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,992 +1,983 @@
1
1
  // https://protobuf.dev/programming-guides/style/
2
- // @generated by protoc-gen-connect-query v0.4.2 with parameter "target=ts"
2
+ // @generated by protoc-gen-connect-query v0.6.0 with parameter "target=ts"
3
3
  // @generated from file wg/cosmo/platform/v1/platform.proto (package wg.cosmo.platform.v1, syntax proto3)
4
4
  /* eslint-disable */
5
5
  // @ts-nocheck
6
- import { createQueryService } from "@connectrpc/connect-query";
6
+ import { CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateOIDCProviderRequest, CreateOIDCProviderResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteOIDCProviderRequest, DeleteOIDCProviderResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetCheckDetailsRequest, GetCheckDetailsResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFederatedSubgraphSDLByNameRequest, GetFederatedSubgraphSDLByNameResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetOIDCProviderRequest, GetOIDCProviderResponse, GetOperationContentRequest, GetOperationContentResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, RemoveInvitationRequest, RemoveInvitationResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js";
7
7
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
8
- import { CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetCheckDetailsRequest, GetCheckDetailsResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFederatedSubgraphSDLByNameRequest, GetFederatedSubgraphSDLByNameResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetOperationContentRequest, GetOperationContentResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, RemoveInvitationRequest, RemoveInvitationResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js";
9
8
  import { GetConfigRequest, GetConfigResponse } from "../../node/v1/node_pb.js";
9
+ import { createQueryService, createUnaryHooks } from "@connectrpc/connect-query";
10
10
  export const typeName = "wg.cosmo.platform.v1.PlatformService";
11
+ /**
12
+ * @generated from service wg.cosmo.platform.v1.PlatformService
13
+ */
14
+ export const PlatformService = {
15
+ typeName: "wg.cosmo.platform.v1.PlatformService",
16
+ methods: {
17
+ /**
18
+ * CreateFederatedGraph creates a federated graph on the control plane.
19
+ *
20
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedGraph
21
+ */
22
+ createFederatedGraph: {
23
+ name: "CreateFederatedGraph",
24
+ I: CreateFederatedGraphRequest,
25
+ O: CreateFederatedGraphResponse,
26
+ kind: MethodKind.Unary,
27
+ },
28
+ /**
29
+ * CreateFederatedSubgraph creates a federated subgraph on the control plane.
30
+ *
31
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedSubgraph
32
+ */
33
+ createFederatedSubgraph: {
34
+ name: "CreateFederatedSubgraph",
35
+ I: CreateFederatedSubgraphRequest,
36
+ O: CreateFederatedSubgraphResponse,
37
+ kind: MethodKind.Unary,
38
+ },
39
+ /**
40
+ * PublishFederatedSubgraph pushes the schema of the subgraph to the control plane.
41
+ *
42
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.PublishFederatedSubgraph
43
+ */
44
+ publishFederatedSubgraph: {
45
+ name: "PublishFederatedSubgraph",
46
+ I: PublishFederatedSubgraphRequest,
47
+ O: PublishFederatedSubgraphResponse,
48
+ kind: MethodKind.Unary,
49
+ },
50
+ /**
51
+ * DeleteFederatedGraph deletes a federated graph from the control plane.
52
+ *
53
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteFederatedGraph
54
+ */
55
+ deleteFederatedGraph: {
56
+ name: "DeleteFederatedGraph",
57
+ I: DeleteFederatedGraphRequest,
58
+ O: DeleteFederatedGraphResponse,
59
+ kind: MethodKind.Unary,
60
+ },
61
+ /**
62
+ * DeleteFederatedSubgraph deletes a federated subgraph from the control plane.
63
+ *
64
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteFederatedSubgraph
65
+ */
66
+ deleteFederatedSubgraph: {
67
+ name: "DeleteFederatedSubgraph",
68
+ I: DeleteFederatedSubgraphRequest,
69
+ O: DeleteFederatedSubgraphResponse,
70
+ kind: MethodKind.Unary,
71
+ },
72
+ /**
73
+ * CheckSubgraphSchema checks if the schema is valid and if it can be composed without conflicts with the provided new subgraph schema.
74
+ *
75
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CheckSubgraphSchema
76
+ */
77
+ checkSubgraphSchema: {
78
+ name: "CheckSubgraphSchema",
79
+ I: CheckSubgraphSchemaRequest,
80
+ O: CheckSubgraphSchemaResponse,
81
+ kind: MethodKind.Unary,
82
+ },
83
+ /**
84
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.FixSubgraphSchema
85
+ */
86
+ fixSubgraphSchema: {
87
+ name: "FixSubgraphSchema",
88
+ I: FixSubgraphSchemaRequest,
89
+ O: FixSubgraphSchemaResponse,
90
+ kind: MethodKind.Unary,
91
+ },
92
+ /**
93
+ * UpdateFederatedGraph updates a federated graph with new labels and routing url
94
+ *
95
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateFederatedGraph
96
+ */
97
+ updateFederatedGraph: {
98
+ name: "UpdateFederatedGraph",
99
+ I: UpdateFederatedGraphRequest,
100
+ O: UpdateFederatedGraphResponse,
101
+ kind: MethodKind.Unary,
102
+ },
103
+ /**
104
+ * UpdateSubgraph updates a subgraph with new labels and routing url
105
+ *
106
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateSubgraph
107
+ */
108
+ updateSubgraph: {
109
+ name: "UpdateSubgraph",
110
+ I: UpdateSubgraphRequest,
111
+ O: UpdateSubgraphResponse,
112
+ kind: MethodKind.Unary,
113
+ },
114
+ /**
115
+ * CheckFederatedGraph checks if the federated graph can be composed with the new labels provided.
116
+ *
117
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CheckFederatedGraph
118
+ */
119
+ checkFederatedGraph: {
120
+ name: "CheckFederatedGraph",
121
+ I: CheckFederatedGraphRequest,
122
+ O: CheckFederatedGraphResponse,
123
+ kind: MethodKind.Unary,
124
+ },
125
+ /**
126
+ * WhoAmI returns the identity of the user currently logged in.
127
+ *
128
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.WhoAmI
129
+ */
130
+ whoAmI: {
131
+ name: "WhoAmI",
132
+ I: WhoAmIRequest,
133
+ O: WhoAmIResponse,
134
+ kind: MethodKind.Unary,
135
+ },
136
+ /**
137
+ * GetRouterTokens returns the router tokens of a federated graph.
138
+ *
139
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetRouterTokens
140
+ */
141
+ getRouterTokens: {
142
+ name: "GetRouterTokens",
143
+ I: GetRouterTokensRequest,
144
+ O: GetRouterTokensResponse,
145
+ kind: MethodKind.Unary,
146
+ },
147
+ /**
148
+ * DeleteRouterToken deletes the router token of a federated graph.
149
+ *
150
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteRouterToken
151
+ */
152
+ deleteRouterToken: {
153
+ name: "DeleteRouterToken",
154
+ I: DeleteRouterTokenRequest,
155
+ O: DeleteRouterTokenResponse,
156
+ kind: MethodKind.Unary,
157
+ },
158
+ /**
159
+ * GetFederatedGraphs returns the list of federated graphs.
160
+ *
161
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphs
162
+ */
163
+ getFederatedGraphs: {
164
+ name: "GetFederatedGraphs",
165
+ I: GetFederatedGraphsRequest,
166
+ O: GetFederatedGraphsResponse,
167
+ kind: MethodKind.Unary,
168
+ },
169
+ /**
170
+ * GetFederatedGraphByName returns the federated graph by name.
171
+ *
172
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphByName
173
+ */
174
+ getFederatedGraphByName: {
175
+ name: "GetFederatedGraphByName",
176
+ I: GetFederatedGraphByNameRequest,
177
+ O: GetFederatedGraphByNameResponse,
178
+ kind: MethodKind.Unary,
179
+ },
180
+ /**
181
+ * GetFederatedGraphSDLByName returns the latest valid SDL of the federated graph by name.
182
+ *
183
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphSDLByName
184
+ */
185
+ getFederatedGraphSDLByName: {
186
+ name: "GetFederatedGraphSDLByName",
187
+ I: GetFederatedGraphSDLByNameRequest,
188
+ O: GetFederatedGraphSDLByNameResponse,
189
+ kind: MethodKind.Unary,
190
+ },
191
+ /**
192
+ * GetSubgraphs returns the list of subgraphs.
193
+ *
194
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetSubgraphs
195
+ */
196
+ getSubgraphs: {
197
+ name: "GetSubgraphs",
198
+ I: GetSubgraphsRequest,
199
+ O: GetSubgraphsResponse,
200
+ kind: MethodKind.Unary,
201
+ },
202
+ /**
203
+ * GetSubgraphByName returns the subgraph by name.
204
+ *
205
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetSubgraphByName
206
+ */
207
+ getSubgraphByName: {
208
+ name: "GetSubgraphByName",
209
+ I: GetSubgraphByNameRequest,
210
+ O: GetSubgraphByNameResponse,
211
+ kind: MethodKind.Unary,
212
+ },
213
+ /**
214
+ * GetFederatedSubgraphSDLByName returns the SDL of the subgraph by name.
215
+ *
216
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedSubgraphSDLByName
217
+ */
218
+ getFederatedSubgraphSDLByName: {
219
+ name: "GetFederatedSubgraphSDLByName",
220
+ I: GetFederatedSubgraphSDLByNameRequest,
221
+ O: GetFederatedSubgraphSDLByNameResponse,
222
+ kind: MethodKind.Unary,
223
+ },
224
+ /**
225
+ * GetChecksByFederatedGraphName return schema and composition checks that concern a federated graph
226
+ *
227
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetChecksByFederatedGraphName
228
+ */
229
+ getChecksByFederatedGraphName: {
230
+ name: "GetChecksByFederatedGraphName",
231
+ I: GetChecksByFederatedGraphNameRequest,
232
+ O: GetChecksByFederatedGraphNameResponse,
233
+ kind: MethodKind.Unary,
234
+ },
235
+ /**
236
+ * GetCheckSummary returns top level information about a schema check
237
+ *
238
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckSummary
239
+ */
240
+ getCheckSummary: {
241
+ name: "GetCheckSummary",
242
+ I: GetCheckSummaryRequest,
243
+ O: GetCheckSummaryResponse,
244
+ kind: MethodKind.Unary,
245
+ },
246
+ /**
247
+ * GetCheckDetails returns changes and composition errors recorded for a check
248
+ *
249
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckDetails
250
+ */
251
+ getCheckDetails: {
252
+ name: "GetCheckDetails",
253
+ I: GetCheckDetailsRequest,
254
+ O: GetCheckDetailsResponse,
255
+ kind: MethodKind.Unary,
256
+ },
257
+ /**
258
+ * GetCheckOperations returns affected operations for a check
259
+ *
260
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckOperations
261
+ */
262
+ getCheckOperations: {
263
+ name: "GetCheckOperations",
264
+ I: GetCheckOperationsRequest,
265
+ O: GetCheckOperationsResponse,
266
+ kind: MethodKind.Unary,
267
+ },
268
+ /**
269
+ * ForceCheckSuccess forces a failed check to be marked as successful
270
+ *
271
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.ForceCheckSuccess
272
+ */
273
+ forceCheckSuccess: {
274
+ name: "ForceCheckSuccess",
275
+ I: ForceCheckSuccessRequest,
276
+ O: ForceCheckSuccessResponse,
277
+ kind: MethodKind.Unary,
278
+ },
279
+ /**
280
+ * GetOperationContent returns the operation body by searching using the hash
281
+ *
282
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOperationContent
283
+ */
284
+ getOperationContent: {
285
+ name: "GetOperationContent",
286
+ I: GetOperationContentRequest,
287
+ O: GetOperationContentResponse,
288
+ kind: MethodKind.Unary,
289
+ },
290
+ /**
291
+ * GetFederatedGraphChangelog returns the changelog of the federated graph.
292
+ *
293
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphChangelog
294
+ */
295
+ getFederatedGraphChangelog: {
296
+ name: "GetFederatedGraphChangelog",
297
+ I: GetFederatedGraphChangelogRequest,
298
+ O: GetFederatedGraphChangelogResponse,
299
+ kind: MethodKind.Unary,
300
+ },
301
+ /**
302
+ * CreateFederatedGraphToken creates a federated graph token that is consumed by the router to authenticate requests.
303
+ *
304
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedGraphToken
305
+ */
306
+ createFederatedGraphToken: {
307
+ name: "CreateFederatedGraphToken",
308
+ I: CreateFederatedGraphTokenRequest,
309
+ O: CreateFederatedGraphTokenResponse,
310
+ kind: MethodKind.Unary,
311
+ },
312
+ /**
313
+ * GetOrganizationMembers returns the list of organization members
314
+ *
315
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationMembers
316
+ */
317
+ getOrganizationMembers: {
318
+ name: "GetOrganizationMembers",
319
+ I: GetOrganizationMembersRequest,
320
+ O: GetOrganizationMembersResponse,
321
+ kind: MethodKind.Unary,
322
+ },
323
+ /**
324
+ * InviteUser invites an user to join the organization
325
+ *
326
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.InviteUser
327
+ */
328
+ inviteUser: {
329
+ name: "InviteUser",
330
+ I: InviteUserRequest,
331
+ O: InviteUserResponse,
332
+ kind: MethodKind.Unary,
333
+ },
334
+ /**
335
+ * GetAPIKeys returns a list of API keys of the organization
336
+ *
337
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetAPIKeys
338
+ */
339
+ getAPIKeys: {
340
+ name: "GetAPIKeys",
341
+ I: GetAPIKeysRequest,
342
+ O: GetAPIKeysResponse,
343
+ kind: MethodKind.Unary,
344
+ },
345
+ /**
346
+ * CreateAPIKey creates an API key for the organization
347
+ *
348
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateAPIKey
349
+ */
350
+ createAPIKey: {
351
+ name: "CreateAPIKey",
352
+ I: CreateAPIKeyRequest,
353
+ O: CreateAPIKeyResponse,
354
+ kind: MethodKind.Unary,
355
+ },
356
+ /**
357
+ * DeleteAPIKey deletes an API key for the organization
358
+ *
359
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteAPIKey
360
+ */
361
+ deleteAPIKey: {
362
+ name: "DeleteAPIKey",
363
+ I: DeleteAPIKeyRequest,
364
+ O: DeleteAPIKeyResponse,
365
+ kind: MethodKind.Unary,
366
+ },
367
+ /**
368
+ * RemoveOrganizationMember removes the user from the organization
369
+ *
370
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.RemoveInvitation
371
+ */
372
+ removeInvitation: {
373
+ name: "RemoveInvitation",
374
+ I: RemoveInvitationRequest,
375
+ O: RemoveInvitationResponse,
376
+ kind: MethodKind.Unary,
377
+ },
378
+ /**
379
+ * GetLatestValidRouterConfig returns the router config for the federated graph
380
+ *
381
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetLatestValidRouterConfig
382
+ */
383
+ getLatestValidRouterConfig: {
384
+ name: "GetLatestValidRouterConfig",
385
+ I: GetConfigRequest,
386
+ O: GetConfigResponse,
387
+ kind: MethodKind.Unary,
388
+ },
389
+ /**
390
+ * MigrateFromApollo migrates the graphs from apollo to cosmo
391
+ *
392
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.MigrateFromApollo
393
+ */
394
+ migrateFromApollo: {
395
+ name: "MigrateFromApollo",
396
+ I: MigrateFromApolloRequest,
397
+ O: MigrateFromApolloResponse,
398
+ kind: MethodKind.Unary,
399
+ },
400
+ /**
401
+ * CreateOrganizationWebhookConfig create a new webhook config for the organization
402
+ *
403
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateOrganizationWebhookConfig
404
+ */
405
+ createOrganizationWebhookConfig: {
406
+ name: "CreateOrganizationWebhookConfig",
407
+ I: CreateOrganizationWebhookConfigRequest,
408
+ O: CreateOrganizationWebhookConfigResponse,
409
+ kind: MethodKind.Unary,
410
+ },
411
+ /**
412
+ * GetOrganizationWebhookConfigs returns all webhooks for the organization
413
+ *
414
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationWebhookConfigs
415
+ */
416
+ getOrganizationWebhookConfigs: {
417
+ name: "GetOrganizationWebhookConfigs",
418
+ I: GetOrganizationWebhookConfigsRequest,
419
+ O: GetOrganizationWebhookConfigsResponse,
420
+ kind: MethodKind.Unary,
421
+ },
422
+ /**
423
+ * GetOrganizationWebhookMeta returns the meta data for a particular webhook
424
+ *
425
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationWebhookMeta
426
+ */
427
+ getOrganizationWebhookMeta: {
428
+ name: "GetOrganizationWebhookMeta",
429
+ I: GetOrganizationWebhookMetaRequest,
430
+ O: GetOrganizationWebhookMetaResponse,
431
+ kind: MethodKind.Unary,
432
+ },
433
+ /**
434
+ * UpdateOrganizationWebhookConfig updates an existing webhook for the organization
435
+ *
436
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrganizationWebhookConfig
437
+ */
438
+ updateOrganizationWebhookConfig: {
439
+ name: "UpdateOrganizationWebhookConfig",
440
+ I: UpdateOrganizationWebhookConfigRequest,
441
+ O: UpdateOrganizationWebhookConfigResponse,
442
+ kind: MethodKind.Unary,
443
+ },
444
+ /**
445
+ * DeleteOrganizationWebhookConfig deletes an organization webhook
446
+ *
447
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOrganizationWebhookConfig
448
+ */
449
+ deleteOrganizationWebhookConfig: {
450
+ name: "DeleteOrganizationWebhookConfig",
451
+ I: DeleteOrganizationWebhookConfigRequest,
452
+ O: DeleteOrganizationWebhookConfigResponse,
453
+ kind: MethodKind.Unary,
454
+ },
455
+ /**
456
+ * CreateIntegration create a new integration for the organization
457
+ *
458
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateIntegration
459
+ */
460
+ createIntegration: {
461
+ name: "CreateIntegration",
462
+ I: CreateIntegrationRequest,
463
+ O: CreateIntegrationResponse,
464
+ kind: MethodKind.Unary,
465
+ },
466
+ /**
467
+ * GetOrganizationIntegrations returns all integrations of the organization
468
+ *
469
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationIntegrations
470
+ */
471
+ getOrganizationIntegrations: {
472
+ name: "GetOrganizationIntegrations",
473
+ I: GetOrganizationIntegrationsRequest,
474
+ O: GetOrganizationIntegrationsResponse,
475
+ kind: MethodKind.Unary,
476
+ },
477
+ /**
478
+ * UpdateIntegrationConfig updates an existing integration of the organization
479
+ *
480
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateIntegrationConfig
481
+ */
482
+ updateIntegrationConfig: {
483
+ name: "UpdateIntegrationConfig",
484
+ I: UpdateIntegrationConfigRequest,
485
+ O: UpdateIntegrationConfigResponse,
486
+ kind: MethodKind.Unary,
487
+ },
488
+ /**
489
+ * DeleteIntegration deletes an organization webhintegrationook
490
+ *
491
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteIntegration
492
+ */
493
+ deleteIntegration: {
494
+ name: "DeleteIntegration",
495
+ I: DeleteIntegrationRequest,
496
+ O: DeleteIntegrationResponse,
497
+ kind: MethodKind.Unary,
498
+ },
499
+ /**
500
+ * DeleteOrganization deletes an organization
501
+ *
502
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOrganization
503
+ */
504
+ deleteOrganization: {
505
+ name: "DeleteOrganization",
506
+ I: DeleteOrganizationRequest,
507
+ O: DeleteOrganizationResponse,
508
+ kind: MethodKind.Unary,
509
+ },
510
+ /**
511
+ * LeaveOrganization removes a member from the organization
512
+ *
513
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.LeaveOrganization
514
+ */
515
+ leaveOrganization: {
516
+ name: "LeaveOrganization",
517
+ I: LeaveOrganizationRequest,
518
+ O: LeaveOrganizationResponse,
519
+ kind: MethodKind.Unary,
520
+ },
521
+ /**
522
+ * UpdateOrganizationDetails updates the name and slug of the organization
523
+ *
524
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrganizationDetails
525
+ */
526
+ updateOrganizationDetails: {
527
+ name: "UpdateOrganizationDetails",
528
+ I: UpdateOrganizationDetailsRequest,
529
+ O: UpdateOrganizationDetailsResponse,
530
+ kind: MethodKind.Unary,
531
+ },
532
+ /**
533
+ * UpdateOrgMemberRole updates the role of an org member
534
+ *
535
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrgMemberRole
536
+ */
537
+ updateOrgMemberRole: {
538
+ name: "UpdateOrgMemberRole",
539
+ I: UpdateOrgMemberRoleRequest,
540
+ O: UpdateOrgMemberRoleResponse,
541
+ kind: MethodKind.Unary,
542
+ },
543
+ /**
544
+ * IsGitHubAppInstalled checks if the cosmo github app is installed to a repository
545
+ *
546
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.IsGitHubAppInstalled
547
+ */
548
+ isGitHubAppInstalled: {
549
+ name: "IsGitHubAppInstalled",
550
+ I: IsGitHubAppInstalledRequest,
551
+ O: IsGitHubAppInstalledResponse,
552
+ kind: MethodKind.Unary,
553
+ },
554
+ /**
555
+ * CreateOIDCProvider adds an oidc provider to the organization
556
+ *
557
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateOIDCProvider
558
+ */
559
+ createOIDCProvider: {
560
+ name: "CreateOIDCProvider",
561
+ I: CreateOIDCProviderRequest,
562
+ O: CreateOIDCProviderResponse,
563
+ kind: MethodKind.Unary,
564
+ },
565
+ /**
566
+ * GetOIDCProvider gets the oidc provider connected the organization
567
+ *
568
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOIDCProvider
569
+ */
570
+ getOIDCProvider: {
571
+ name: "GetOIDCProvider",
572
+ I: GetOIDCProviderRequest,
573
+ O: GetOIDCProviderResponse,
574
+ kind: MethodKind.Unary,
575
+ },
576
+ /**
577
+ * DeleteOIDCProvider deletes the oidc provider connected the organization
578
+ *
579
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOIDCProvider
580
+ */
581
+ deleteOIDCProvider: {
582
+ name: "DeleteOIDCProvider",
583
+ I: DeleteOIDCProviderRequest,
584
+ O: DeleteOIDCProviderResponse,
585
+ kind: MethodKind.Unary,
586
+ },
587
+ /**
588
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetAnalyticsView
589
+ */
590
+ getAnalyticsView: {
591
+ name: "GetAnalyticsView",
592
+ I: GetAnalyticsViewRequest,
593
+ O: GetAnalyticsViewResponse,
594
+ kind: MethodKind.Unary,
595
+ idempotency: MethodIdempotency.NoSideEffects,
596
+ },
597
+ /**
598
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetDashboardAnalyticsView
599
+ */
600
+ getDashboardAnalyticsView: {
601
+ name: "GetDashboardAnalyticsView",
602
+ I: GetDashboardAnalyticsViewRequest,
603
+ O: GetDashboardAnalyticsViewResponse,
604
+ kind: MethodKind.Unary,
605
+ idempotency: MethodIdempotency.NoSideEffects,
606
+ },
607
+ /**
608
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetTrace
609
+ */
610
+ getTrace: {
611
+ name: "GetTrace",
612
+ I: GetTraceRequest,
613
+ O: GetTraceResponse,
614
+ kind: MethodKind.Unary,
615
+ },
616
+ /**
617
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetGraphMetrics
618
+ */
619
+ getGraphMetrics: {
620
+ name: "GetGraphMetrics",
621
+ I: GetGraphMetricsRequest,
622
+ O: GetGraphMetricsResponse,
623
+ kind: MethodKind.Unary,
624
+ idempotency: MethodIdempotency.NoSideEffects,
625
+ },
626
+ /**
627
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetMetricsErrorRate
628
+ */
629
+ getMetricsErrorRate: {
630
+ name: "GetMetricsErrorRate",
631
+ I: GetMetricsErrorRateRequest,
632
+ O: GetMetricsErrorRateResponse,
633
+ kind: MethodKind.Unary,
634
+ idempotency: MethodIdempotency.NoSideEffects,
635
+ },
636
+ /**
637
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFieldUsage
638
+ */
639
+ getFieldUsage: {
640
+ name: "GetFieldUsage",
641
+ I: GetFieldUsageRequest,
642
+ O: GetFieldUsageResponse,
643
+ kind: MethodKind.Unary,
644
+ idempotency: MethodIdempotency.NoSideEffects,
645
+ },
646
+ }
647
+ };
648
+ const $queryService = createQueryService({ service: PlatformService, });
11
649
  /**
12
650
  * CreateFederatedGraph creates a federated graph on the control plane.
13
651
  *
14
652
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedGraph
15
653
  */
16
- export const createFederatedGraph = createQueryService({
17
- service: {
18
- methods: {
19
- createFederatedGraph: {
20
- name: "CreateFederatedGraph",
21
- kind: MethodKind.Unary,
22
- I: CreateFederatedGraphRequest,
23
- O: CreateFederatedGraphResponse,
24
- },
25
- },
26
- typeName: "wg.cosmo.platform.v1.PlatformService",
27
- },
28
- }).createFederatedGraph;
654
+ export const createFederatedGraph = { ...$queryService.createFederatedGraph, ...createUnaryHooks($queryService.createFederatedGraph) };
29
655
  /**
30
656
  * CreateFederatedSubgraph creates a federated subgraph on the control plane.
31
657
  *
32
658
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedSubgraph
33
659
  */
34
- export const createFederatedSubgraph = createQueryService({
35
- service: {
36
- methods: {
37
- createFederatedSubgraph: {
38
- name: "CreateFederatedSubgraph",
39
- kind: MethodKind.Unary,
40
- I: CreateFederatedSubgraphRequest,
41
- O: CreateFederatedSubgraphResponse,
42
- },
43
- },
44
- typeName: "wg.cosmo.platform.v1.PlatformService",
45
- },
46
- }).createFederatedSubgraph;
660
+ export const createFederatedSubgraph = { ...$queryService.createFederatedSubgraph, ...createUnaryHooks($queryService.createFederatedSubgraph) };
47
661
  /**
48
662
  * PublishFederatedSubgraph pushes the schema of the subgraph to the control plane.
49
663
  *
50
664
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.PublishFederatedSubgraph
51
665
  */
52
- export const publishFederatedSubgraph = createQueryService({
53
- service: {
54
- methods: {
55
- publishFederatedSubgraph: {
56
- name: "PublishFederatedSubgraph",
57
- kind: MethodKind.Unary,
58
- I: PublishFederatedSubgraphRequest,
59
- O: PublishFederatedSubgraphResponse,
60
- },
61
- },
62
- typeName: "wg.cosmo.platform.v1.PlatformService",
63
- },
64
- }).publishFederatedSubgraph;
666
+ export const publishFederatedSubgraph = { ...$queryService.publishFederatedSubgraph, ...createUnaryHooks($queryService.publishFederatedSubgraph) };
65
667
  /**
66
668
  * DeleteFederatedGraph deletes a federated graph from the control plane.
67
669
  *
68
670
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteFederatedGraph
69
671
  */
70
- export const deleteFederatedGraph = createQueryService({
71
- service: {
72
- methods: {
73
- deleteFederatedGraph: {
74
- name: "DeleteFederatedGraph",
75
- kind: MethodKind.Unary,
76
- I: DeleteFederatedGraphRequest,
77
- O: DeleteFederatedGraphResponse,
78
- },
79
- },
80
- typeName: "wg.cosmo.platform.v1.PlatformService",
81
- },
82
- }).deleteFederatedGraph;
672
+ export const deleteFederatedGraph = { ...$queryService.deleteFederatedGraph, ...createUnaryHooks($queryService.deleteFederatedGraph) };
83
673
  /**
84
674
  * DeleteFederatedSubgraph deletes a federated subgraph from the control plane.
85
675
  *
86
676
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteFederatedSubgraph
87
677
  */
88
- export const deleteFederatedSubgraph = createQueryService({
89
- service: {
90
- methods: {
91
- deleteFederatedSubgraph: {
92
- name: "DeleteFederatedSubgraph",
93
- kind: MethodKind.Unary,
94
- I: DeleteFederatedSubgraphRequest,
95
- O: DeleteFederatedSubgraphResponse,
96
- },
97
- },
98
- typeName: "wg.cosmo.platform.v1.PlatformService",
99
- },
100
- }).deleteFederatedSubgraph;
678
+ export const deleteFederatedSubgraph = { ...$queryService.deleteFederatedSubgraph, ...createUnaryHooks($queryService.deleteFederatedSubgraph) };
101
679
  /**
102
680
  * CheckSubgraphSchema checks if the schema is valid and if it can be composed without conflicts with the provided new subgraph schema.
103
681
  *
104
682
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CheckSubgraphSchema
105
683
  */
106
- export const checkSubgraphSchema = createQueryService({
107
- service: {
108
- methods: {
109
- checkSubgraphSchema: {
110
- name: "CheckSubgraphSchema",
111
- kind: MethodKind.Unary,
112
- I: CheckSubgraphSchemaRequest,
113
- O: CheckSubgraphSchemaResponse,
114
- },
115
- },
116
- typeName: "wg.cosmo.platform.v1.PlatformService",
117
- },
118
- }).checkSubgraphSchema;
684
+ export const checkSubgraphSchema = { ...$queryService.checkSubgraphSchema, ...createUnaryHooks($queryService.checkSubgraphSchema) };
119
685
  /**
120
686
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.FixSubgraphSchema
121
687
  */
122
- export const fixSubgraphSchema = createQueryService({
123
- service: {
124
- methods: {
125
- fixSubgraphSchema: {
126
- name: "FixSubgraphSchema",
127
- kind: MethodKind.Unary,
128
- I: FixSubgraphSchemaRequest,
129
- O: FixSubgraphSchemaResponse,
130
- },
131
- },
132
- typeName: "wg.cosmo.platform.v1.PlatformService",
133
- },
134
- }).fixSubgraphSchema;
688
+ export const fixSubgraphSchema = { ...$queryService.fixSubgraphSchema, ...createUnaryHooks($queryService.fixSubgraphSchema) };
135
689
  /**
136
690
  * UpdateFederatedGraph updates a federated graph with new labels and routing url
137
691
  *
138
692
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateFederatedGraph
139
693
  */
140
- export const updateFederatedGraph = createQueryService({
141
- service: {
142
- methods: {
143
- updateFederatedGraph: {
144
- name: "UpdateFederatedGraph",
145
- kind: MethodKind.Unary,
146
- I: UpdateFederatedGraphRequest,
147
- O: UpdateFederatedGraphResponse,
148
- },
149
- },
150
- typeName: "wg.cosmo.platform.v1.PlatformService",
151
- },
152
- }).updateFederatedGraph;
694
+ export const updateFederatedGraph = { ...$queryService.updateFederatedGraph, ...createUnaryHooks($queryService.updateFederatedGraph) };
153
695
  /**
154
696
  * UpdateSubgraph updates a subgraph with new labels and routing url
155
697
  *
156
698
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateSubgraph
157
699
  */
158
- export const updateSubgraph = createQueryService({
159
- service: {
160
- methods: {
161
- updateSubgraph: {
162
- name: "UpdateSubgraph",
163
- kind: MethodKind.Unary,
164
- I: UpdateSubgraphRequest,
165
- O: UpdateSubgraphResponse,
166
- },
167
- },
168
- typeName: "wg.cosmo.platform.v1.PlatformService",
169
- },
170
- }).updateSubgraph;
700
+ export const updateSubgraph = { ...$queryService.updateSubgraph, ...createUnaryHooks($queryService.updateSubgraph) };
171
701
  /**
172
702
  * CheckFederatedGraph checks if the federated graph can be composed with the new labels provided.
173
703
  *
174
704
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CheckFederatedGraph
175
705
  */
176
- export const checkFederatedGraph = createQueryService({
177
- service: {
178
- methods: {
179
- checkFederatedGraph: {
180
- name: "CheckFederatedGraph",
181
- kind: MethodKind.Unary,
182
- I: CheckFederatedGraphRequest,
183
- O: CheckFederatedGraphResponse,
184
- },
185
- },
186
- typeName: "wg.cosmo.platform.v1.PlatformService",
187
- },
188
- }).checkFederatedGraph;
706
+ export const checkFederatedGraph = { ...$queryService.checkFederatedGraph, ...createUnaryHooks($queryService.checkFederatedGraph) };
189
707
  /**
190
708
  * WhoAmI returns the identity of the user currently logged in.
191
709
  *
192
710
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.WhoAmI
193
711
  */
194
- export const whoAmI = createQueryService({
195
- service: {
196
- methods: {
197
- whoAmI: {
198
- name: "WhoAmI",
199
- kind: MethodKind.Unary,
200
- I: WhoAmIRequest,
201
- O: WhoAmIResponse,
202
- },
203
- },
204
- typeName: "wg.cosmo.platform.v1.PlatformService",
205
- },
206
- }).whoAmI;
712
+ export const whoAmI = { ...$queryService.whoAmI, ...createUnaryHooks($queryService.whoAmI) };
207
713
  /**
208
714
  * GetRouterTokens returns the router tokens of a federated graph.
209
715
  *
210
716
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetRouterTokens
211
717
  */
212
- export const getRouterTokens = createQueryService({
213
- service: {
214
- methods: {
215
- getRouterTokens: {
216
- name: "GetRouterTokens",
217
- kind: MethodKind.Unary,
218
- I: GetRouterTokensRequest,
219
- O: GetRouterTokensResponse,
220
- },
221
- },
222
- typeName: "wg.cosmo.platform.v1.PlatformService",
223
- },
224
- }).getRouterTokens;
718
+ export const getRouterTokens = { ...$queryService.getRouterTokens, ...createUnaryHooks($queryService.getRouterTokens) };
225
719
  /**
226
720
  * DeleteRouterToken deletes the router token of a federated graph.
227
721
  *
228
722
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteRouterToken
229
723
  */
230
- export const deleteRouterToken = createQueryService({
231
- service: {
232
- methods: {
233
- deleteRouterToken: {
234
- name: "DeleteRouterToken",
235
- kind: MethodKind.Unary,
236
- I: DeleteRouterTokenRequest,
237
- O: DeleteRouterTokenResponse,
238
- },
239
- },
240
- typeName: "wg.cosmo.platform.v1.PlatformService",
241
- },
242
- }).deleteRouterToken;
724
+ export const deleteRouterToken = { ...$queryService.deleteRouterToken, ...createUnaryHooks($queryService.deleteRouterToken) };
243
725
  /**
244
726
  * GetFederatedGraphs returns the list of federated graphs.
245
727
  *
246
728
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphs
247
729
  */
248
- export const getFederatedGraphs = createQueryService({
249
- service: {
250
- methods: {
251
- getFederatedGraphs: {
252
- name: "GetFederatedGraphs",
253
- kind: MethodKind.Unary,
254
- I: GetFederatedGraphsRequest,
255
- O: GetFederatedGraphsResponse,
256
- },
257
- },
258
- typeName: "wg.cosmo.platform.v1.PlatformService",
259
- },
260
- }).getFederatedGraphs;
730
+ export const getFederatedGraphs = { ...$queryService.getFederatedGraphs, ...createUnaryHooks($queryService.getFederatedGraphs) };
261
731
  /**
262
732
  * GetFederatedGraphByName returns the federated graph by name.
263
733
  *
264
734
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphByName
265
735
  */
266
- export const getFederatedGraphByName = createQueryService({
267
- service: {
268
- methods: {
269
- getFederatedGraphByName: {
270
- name: "GetFederatedGraphByName",
271
- kind: MethodKind.Unary,
272
- I: GetFederatedGraphByNameRequest,
273
- O: GetFederatedGraphByNameResponse,
274
- },
275
- },
276
- typeName: "wg.cosmo.platform.v1.PlatformService",
277
- },
278
- }).getFederatedGraphByName;
736
+ export const getFederatedGraphByName = { ...$queryService.getFederatedGraphByName, ...createUnaryHooks($queryService.getFederatedGraphByName) };
279
737
  /**
280
738
  * GetFederatedGraphSDLByName returns the latest valid SDL of the federated graph by name.
281
739
  *
282
740
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphSDLByName
283
741
  */
284
- export const getFederatedGraphSDLByName = createQueryService({
285
- service: {
286
- methods: {
287
- getFederatedGraphSDLByName: {
288
- name: "GetFederatedGraphSDLByName",
289
- kind: MethodKind.Unary,
290
- I: GetFederatedGraphSDLByNameRequest,
291
- O: GetFederatedGraphSDLByNameResponse,
292
- },
293
- },
294
- typeName: "wg.cosmo.platform.v1.PlatformService",
295
- },
296
- }).getFederatedGraphSDLByName;
742
+ export const getFederatedGraphSDLByName = { ...$queryService.getFederatedGraphSDLByName, ...createUnaryHooks($queryService.getFederatedGraphSDLByName) };
297
743
  /**
298
744
  * GetSubgraphs returns the list of subgraphs.
299
745
  *
300
746
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetSubgraphs
301
747
  */
302
- export const getSubgraphs = createQueryService({
303
- service: {
304
- methods: {
305
- getSubgraphs: {
306
- name: "GetSubgraphs",
307
- kind: MethodKind.Unary,
308
- I: GetSubgraphsRequest,
309
- O: GetSubgraphsResponse,
310
- },
311
- },
312
- typeName: "wg.cosmo.platform.v1.PlatformService",
313
- },
314
- }).getSubgraphs;
748
+ export const getSubgraphs = { ...$queryService.getSubgraphs, ...createUnaryHooks($queryService.getSubgraphs) };
315
749
  /**
316
750
  * GetSubgraphByName returns the subgraph by name.
317
751
  *
318
752
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetSubgraphByName
319
753
  */
320
- export const getSubgraphByName = createQueryService({
321
- service: {
322
- methods: {
323
- getSubgraphByName: {
324
- name: "GetSubgraphByName",
325
- kind: MethodKind.Unary,
326
- I: GetSubgraphByNameRequest,
327
- O: GetSubgraphByNameResponse,
328
- },
329
- },
330
- typeName: "wg.cosmo.platform.v1.PlatformService",
331
- },
332
- }).getSubgraphByName;
754
+ export const getSubgraphByName = { ...$queryService.getSubgraphByName, ...createUnaryHooks($queryService.getSubgraphByName) };
333
755
  /**
334
756
  * GetFederatedSubgraphSDLByName returns the SDL of the subgraph by name.
335
757
  *
336
758
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedSubgraphSDLByName
337
759
  */
338
- export const getFederatedSubgraphSDLByName = createQueryService({
339
- service: {
340
- methods: {
341
- getFederatedSubgraphSDLByName: {
342
- name: "GetFederatedSubgraphSDLByName",
343
- kind: MethodKind.Unary,
344
- I: GetFederatedSubgraphSDLByNameRequest,
345
- O: GetFederatedSubgraphSDLByNameResponse,
346
- },
347
- },
348
- typeName: "wg.cosmo.platform.v1.PlatformService",
349
- },
350
- }).getFederatedSubgraphSDLByName;
760
+ export const getFederatedSubgraphSDLByName = { ...$queryService.getFederatedSubgraphSDLByName, ...createUnaryHooks($queryService.getFederatedSubgraphSDLByName) };
351
761
  /**
352
762
  * GetChecksByFederatedGraphName return schema and composition checks that concern a federated graph
353
763
  *
354
764
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetChecksByFederatedGraphName
355
765
  */
356
- export const getChecksByFederatedGraphName = createQueryService({
357
- service: {
358
- methods: {
359
- getChecksByFederatedGraphName: {
360
- name: "GetChecksByFederatedGraphName",
361
- kind: MethodKind.Unary,
362
- I: GetChecksByFederatedGraphNameRequest,
363
- O: GetChecksByFederatedGraphNameResponse,
364
- },
365
- },
366
- typeName: "wg.cosmo.platform.v1.PlatformService",
367
- },
368
- }).getChecksByFederatedGraphName;
766
+ export const getChecksByFederatedGraphName = { ...$queryService.getChecksByFederatedGraphName, ...createUnaryHooks($queryService.getChecksByFederatedGraphName) };
369
767
  /**
370
768
  * GetCheckSummary returns top level information about a schema check
371
769
  *
372
770
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckSummary
373
771
  */
374
- export const getCheckSummary = createQueryService({
375
- service: {
376
- methods: {
377
- getCheckSummary: {
378
- name: "GetCheckSummary",
379
- kind: MethodKind.Unary,
380
- I: GetCheckSummaryRequest,
381
- O: GetCheckSummaryResponse,
382
- },
383
- },
384
- typeName: "wg.cosmo.platform.v1.PlatformService",
385
- },
386
- }).getCheckSummary;
772
+ export const getCheckSummary = { ...$queryService.getCheckSummary, ...createUnaryHooks($queryService.getCheckSummary) };
387
773
  /**
388
774
  * GetCheckDetails returns changes and composition errors recorded for a check
389
775
  *
390
776
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckDetails
391
777
  */
392
- export const getCheckDetails = createQueryService({
393
- service: {
394
- methods: {
395
- getCheckDetails: {
396
- name: "GetCheckDetails",
397
- kind: MethodKind.Unary,
398
- I: GetCheckDetailsRequest,
399
- O: GetCheckDetailsResponse,
400
- },
401
- },
402
- typeName: "wg.cosmo.platform.v1.PlatformService",
403
- },
404
- }).getCheckDetails;
778
+ export const getCheckDetails = { ...$queryService.getCheckDetails, ...createUnaryHooks($queryService.getCheckDetails) };
405
779
  /**
406
780
  * GetCheckOperations returns affected operations for a check
407
781
  *
408
782
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetCheckOperations
409
783
  */
410
- export const getCheckOperations = createQueryService({
411
- service: {
412
- methods: {
413
- getCheckOperations: {
414
- name: "GetCheckOperations",
415
- kind: MethodKind.Unary,
416
- I: GetCheckOperationsRequest,
417
- O: GetCheckOperationsResponse,
418
- },
419
- },
420
- typeName: "wg.cosmo.platform.v1.PlatformService",
421
- },
422
- }).getCheckOperations;
784
+ export const getCheckOperations = { ...$queryService.getCheckOperations, ...createUnaryHooks($queryService.getCheckOperations) };
423
785
  /**
424
786
  * ForceCheckSuccess forces a failed check to be marked as successful
425
787
  *
426
788
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.ForceCheckSuccess
427
789
  */
428
- export const forceCheckSuccess = createQueryService({
429
- service: {
430
- methods: {
431
- forceCheckSuccess: {
432
- name: "ForceCheckSuccess",
433
- kind: MethodKind.Unary,
434
- I: ForceCheckSuccessRequest,
435
- O: ForceCheckSuccessResponse,
436
- },
437
- },
438
- typeName: "wg.cosmo.platform.v1.PlatformService",
439
- },
440
- }).forceCheckSuccess;
790
+ export const forceCheckSuccess = { ...$queryService.forceCheckSuccess, ...createUnaryHooks($queryService.forceCheckSuccess) };
441
791
  /**
442
792
  * GetOperationContent returns the operation body by searching using the hash
443
793
  *
444
794
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOperationContent
445
795
  */
446
- export const getOperationContent = createQueryService({
447
- service: {
448
- methods: {
449
- getOperationContent: {
450
- name: "GetOperationContent",
451
- kind: MethodKind.Unary,
452
- I: GetOperationContentRequest,
453
- O: GetOperationContentResponse,
454
- },
455
- },
456
- typeName: "wg.cosmo.platform.v1.PlatformService",
457
- },
458
- }).getOperationContent;
796
+ export const getOperationContent = { ...$queryService.getOperationContent, ...createUnaryHooks($queryService.getOperationContent) };
459
797
  /**
460
798
  * GetFederatedGraphChangelog returns the changelog of the federated graph.
461
799
  *
462
800
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFederatedGraphChangelog
463
801
  */
464
- export const getFederatedGraphChangelog = createQueryService({
465
- service: {
466
- methods: {
467
- getFederatedGraphChangelog: {
468
- name: "GetFederatedGraphChangelog",
469
- kind: MethodKind.Unary,
470
- I: GetFederatedGraphChangelogRequest,
471
- O: GetFederatedGraphChangelogResponse,
472
- },
473
- },
474
- typeName: "wg.cosmo.platform.v1.PlatformService",
475
- },
476
- }).getFederatedGraphChangelog;
802
+ export const getFederatedGraphChangelog = { ...$queryService.getFederatedGraphChangelog, ...createUnaryHooks($queryService.getFederatedGraphChangelog) };
477
803
  /**
478
804
  * CreateFederatedGraphToken creates a federated graph token that is consumed by the router to authenticate requests.
479
805
  *
480
806
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateFederatedGraphToken
481
807
  */
482
- export const createFederatedGraphToken = createQueryService({
483
- service: {
484
- methods: {
485
- createFederatedGraphToken: {
486
- name: "CreateFederatedGraphToken",
487
- kind: MethodKind.Unary,
488
- I: CreateFederatedGraphTokenRequest,
489
- O: CreateFederatedGraphTokenResponse,
490
- },
491
- },
492
- typeName: "wg.cosmo.platform.v1.PlatformService",
493
- },
494
- }).createFederatedGraphToken;
808
+ export const createFederatedGraphToken = { ...$queryService.createFederatedGraphToken, ...createUnaryHooks($queryService.createFederatedGraphToken) };
495
809
  /**
496
810
  * GetOrganizationMembers returns the list of organization members
497
811
  *
498
812
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationMembers
499
813
  */
500
- export const getOrganizationMembers = createQueryService({
501
- service: {
502
- methods: {
503
- getOrganizationMembers: {
504
- name: "GetOrganizationMembers",
505
- kind: MethodKind.Unary,
506
- I: GetOrganizationMembersRequest,
507
- O: GetOrganizationMembersResponse,
508
- },
509
- },
510
- typeName: "wg.cosmo.platform.v1.PlatformService",
511
- },
512
- }).getOrganizationMembers;
814
+ export const getOrganizationMembers = { ...$queryService.getOrganizationMembers, ...createUnaryHooks($queryService.getOrganizationMembers) };
513
815
  /**
514
816
  * InviteUser invites an user to join the organization
515
817
  *
516
818
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.InviteUser
517
819
  */
518
- export const inviteUser = createQueryService({
519
- service: {
520
- methods: {
521
- inviteUser: {
522
- name: "InviteUser",
523
- kind: MethodKind.Unary,
524
- I: InviteUserRequest,
525
- O: InviteUserResponse,
526
- },
527
- },
528
- typeName: "wg.cosmo.platform.v1.PlatformService",
529
- },
530
- }).inviteUser;
820
+ export const inviteUser = { ...$queryService.inviteUser, ...createUnaryHooks($queryService.inviteUser) };
531
821
  /**
532
822
  * GetAPIKeys returns a list of API keys of the organization
533
823
  *
534
824
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetAPIKeys
535
825
  */
536
- export const getAPIKeys = createQueryService({
537
- service: {
538
- methods: {
539
- getAPIKeys: {
540
- name: "GetAPIKeys",
541
- kind: MethodKind.Unary,
542
- I: GetAPIKeysRequest,
543
- O: GetAPIKeysResponse,
544
- },
545
- },
546
- typeName: "wg.cosmo.platform.v1.PlatformService",
547
- },
548
- }).getAPIKeys;
826
+ export const getAPIKeys = { ...$queryService.getAPIKeys, ...createUnaryHooks($queryService.getAPIKeys) };
549
827
  /**
550
828
  * CreateAPIKey creates an API key for the organization
551
829
  *
552
830
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateAPIKey
553
831
  */
554
- export const createAPIKey = createQueryService({
555
- service: {
556
- methods: {
557
- createAPIKey: {
558
- name: "CreateAPIKey",
559
- kind: MethodKind.Unary,
560
- I: CreateAPIKeyRequest,
561
- O: CreateAPIKeyResponse,
562
- },
563
- },
564
- typeName: "wg.cosmo.platform.v1.PlatformService",
565
- },
566
- }).createAPIKey;
832
+ export const createAPIKey = { ...$queryService.createAPIKey, ...createUnaryHooks($queryService.createAPIKey) };
567
833
  /**
568
834
  * DeleteAPIKey deletes an API key for the organization
569
835
  *
570
836
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteAPIKey
571
837
  */
572
- export const deleteAPIKey = createQueryService({
573
- service: {
574
- methods: {
575
- deleteAPIKey: {
576
- name: "DeleteAPIKey",
577
- kind: MethodKind.Unary,
578
- I: DeleteAPIKeyRequest,
579
- O: DeleteAPIKeyResponse,
580
- },
581
- },
582
- typeName: "wg.cosmo.platform.v1.PlatformService",
583
- },
584
- }).deleteAPIKey;
838
+ export const deleteAPIKey = { ...$queryService.deleteAPIKey, ...createUnaryHooks($queryService.deleteAPIKey) };
585
839
  /**
586
840
  * RemoveOrganizationMember removes the user from the organization
587
841
  *
588
842
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.RemoveInvitation
589
843
  */
590
- export const removeInvitation = createQueryService({
591
- service: {
592
- methods: {
593
- removeInvitation: {
594
- name: "RemoveInvitation",
595
- kind: MethodKind.Unary,
596
- I: RemoveInvitationRequest,
597
- O: RemoveInvitationResponse,
598
- },
599
- },
600
- typeName: "wg.cosmo.platform.v1.PlatformService",
601
- },
602
- }).removeInvitation;
844
+ export const removeInvitation = { ...$queryService.removeInvitation, ...createUnaryHooks($queryService.removeInvitation) };
603
845
  /**
604
846
  * GetLatestValidRouterConfig returns the router config for the federated graph
605
847
  *
606
848
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetLatestValidRouterConfig
607
849
  */
608
- export const getLatestValidRouterConfig = createQueryService({
609
- service: {
610
- methods: {
611
- getLatestValidRouterConfig: {
612
- name: "GetLatestValidRouterConfig",
613
- kind: MethodKind.Unary,
614
- I: GetConfigRequest,
615
- O: GetConfigResponse,
616
- },
617
- },
618
- typeName: "wg.cosmo.platform.v1.PlatformService",
619
- },
620
- }).getLatestValidRouterConfig;
850
+ export const getLatestValidRouterConfig = { ...$queryService.getLatestValidRouterConfig, ...createUnaryHooks($queryService.getLatestValidRouterConfig) };
621
851
  /**
622
852
  * MigrateFromApollo migrates the graphs from apollo to cosmo
623
853
  *
624
854
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.MigrateFromApollo
625
855
  */
626
- export const migrateFromApollo = createQueryService({
627
- service: {
628
- methods: {
629
- migrateFromApollo: {
630
- name: "MigrateFromApollo",
631
- kind: MethodKind.Unary,
632
- I: MigrateFromApolloRequest,
633
- O: MigrateFromApolloResponse,
634
- },
635
- },
636
- typeName: "wg.cosmo.platform.v1.PlatformService",
637
- },
638
- }).migrateFromApollo;
856
+ export const migrateFromApollo = { ...$queryService.migrateFromApollo, ...createUnaryHooks($queryService.migrateFromApollo) };
639
857
  /**
640
858
  * CreateOrganizationWebhookConfig create a new webhook config for the organization
641
859
  *
642
860
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateOrganizationWebhookConfig
643
861
  */
644
- export const createOrganizationWebhookConfig = createQueryService({
645
- service: {
646
- methods: {
647
- createOrganizationWebhookConfig: {
648
- name: "CreateOrganizationWebhookConfig",
649
- kind: MethodKind.Unary,
650
- I: CreateOrganizationWebhookConfigRequest,
651
- O: CreateOrganizationWebhookConfigResponse,
652
- },
653
- },
654
- typeName: "wg.cosmo.platform.v1.PlatformService",
655
- },
656
- }).createOrganizationWebhookConfig;
862
+ export const createOrganizationWebhookConfig = { ...$queryService.createOrganizationWebhookConfig, ...createUnaryHooks($queryService.createOrganizationWebhookConfig) };
657
863
  /**
658
864
  * GetOrganizationWebhookConfigs returns all webhooks for the organization
659
865
  *
660
866
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationWebhookConfigs
661
867
  */
662
- export const getOrganizationWebhookConfigs = createQueryService({
663
- service: {
664
- methods: {
665
- getOrganizationWebhookConfigs: {
666
- name: "GetOrganizationWebhookConfigs",
667
- kind: MethodKind.Unary,
668
- I: GetOrganizationWebhookConfigsRequest,
669
- O: GetOrganizationWebhookConfigsResponse,
670
- },
671
- },
672
- typeName: "wg.cosmo.platform.v1.PlatformService",
673
- },
674
- }).getOrganizationWebhookConfigs;
868
+ export const getOrganizationWebhookConfigs = { ...$queryService.getOrganizationWebhookConfigs, ...createUnaryHooks($queryService.getOrganizationWebhookConfigs) };
675
869
  /**
676
870
  * GetOrganizationWebhookMeta returns the meta data for a particular webhook
677
871
  *
678
872
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationWebhookMeta
679
873
  */
680
- export const getOrganizationWebhookMeta = createQueryService({
681
- service: {
682
- methods: {
683
- getOrganizationWebhookMeta: {
684
- name: "GetOrganizationWebhookMeta",
685
- kind: MethodKind.Unary,
686
- I: GetOrganizationWebhookMetaRequest,
687
- O: GetOrganizationWebhookMetaResponse,
688
- },
689
- },
690
- typeName: "wg.cosmo.platform.v1.PlatformService",
691
- },
692
- }).getOrganizationWebhookMeta;
874
+ export const getOrganizationWebhookMeta = { ...$queryService.getOrganizationWebhookMeta, ...createUnaryHooks($queryService.getOrganizationWebhookMeta) };
693
875
  /**
694
876
  * UpdateOrganizationWebhookConfig updates an existing webhook for the organization
695
877
  *
696
878
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrganizationWebhookConfig
697
879
  */
698
- export const updateOrganizationWebhookConfig = createQueryService({
699
- service: {
700
- methods: {
701
- updateOrganizationWebhookConfig: {
702
- name: "UpdateOrganizationWebhookConfig",
703
- kind: MethodKind.Unary,
704
- I: UpdateOrganizationWebhookConfigRequest,
705
- O: UpdateOrganizationWebhookConfigResponse,
706
- },
707
- },
708
- typeName: "wg.cosmo.platform.v1.PlatformService",
709
- },
710
- }).updateOrganizationWebhookConfig;
880
+ export const updateOrganizationWebhookConfig = { ...$queryService.updateOrganizationWebhookConfig, ...createUnaryHooks($queryService.updateOrganizationWebhookConfig) };
711
881
  /**
712
882
  * DeleteOrganizationWebhookConfig deletes an organization webhook
713
883
  *
714
884
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOrganizationWebhookConfig
715
885
  */
716
- export const deleteOrganizationWebhookConfig = createQueryService({
717
- service: {
718
- methods: {
719
- deleteOrganizationWebhookConfig: {
720
- name: "DeleteOrganizationWebhookConfig",
721
- kind: MethodKind.Unary,
722
- I: DeleteOrganizationWebhookConfigRequest,
723
- O: DeleteOrganizationWebhookConfigResponse,
724
- },
725
- },
726
- typeName: "wg.cosmo.platform.v1.PlatformService",
727
- },
728
- }).deleteOrganizationWebhookConfig;
886
+ export const deleteOrganizationWebhookConfig = { ...$queryService.deleteOrganizationWebhookConfig, ...createUnaryHooks($queryService.deleteOrganizationWebhookConfig) };
729
887
  /**
730
888
  * CreateIntegration create a new integration for the organization
731
889
  *
732
890
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateIntegration
733
891
  */
734
- export const createIntegration = createQueryService({
735
- service: {
736
- methods: {
737
- createIntegration: {
738
- name: "CreateIntegration",
739
- kind: MethodKind.Unary,
740
- I: CreateIntegrationRequest,
741
- O: CreateIntegrationResponse,
742
- },
743
- },
744
- typeName: "wg.cosmo.platform.v1.PlatformService",
745
- },
746
- }).createIntegration;
892
+ export const createIntegration = { ...$queryService.createIntegration, ...createUnaryHooks($queryService.createIntegration) };
747
893
  /**
748
894
  * GetOrganizationIntegrations returns all integrations of the organization
749
895
  *
750
896
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOrganizationIntegrations
751
897
  */
752
- export const getOrganizationIntegrations = createQueryService({
753
- service: {
754
- methods: {
755
- getOrganizationIntegrations: {
756
- name: "GetOrganizationIntegrations",
757
- kind: MethodKind.Unary,
758
- I: GetOrganizationIntegrationsRequest,
759
- O: GetOrganizationIntegrationsResponse,
760
- },
761
- },
762
- typeName: "wg.cosmo.platform.v1.PlatformService",
763
- },
764
- }).getOrganizationIntegrations;
898
+ export const getOrganizationIntegrations = { ...$queryService.getOrganizationIntegrations, ...createUnaryHooks($queryService.getOrganizationIntegrations) };
765
899
  /**
766
900
  * UpdateIntegrationConfig updates an existing integration of the organization
767
901
  *
768
902
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateIntegrationConfig
769
903
  */
770
- export const updateIntegrationConfig = createQueryService({
771
- service: {
772
- methods: {
773
- updateIntegrationConfig: {
774
- name: "UpdateIntegrationConfig",
775
- kind: MethodKind.Unary,
776
- I: UpdateIntegrationConfigRequest,
777
- O: UpdateIntegrationConfigResponse,
778
- },
779
- },
780
- typeName: "wg.cosmo.platform.v1.PlatformService",
781
- },
782
- }).updateIntegrationConfig;
904
+ export const updateIntegrationConfig = { ...$queryService.updateIntegrationConfig, ...createUnaryHooks($queryService.updateIntegrationConfig) };
783
905
  /**
784
906
  * DeleteIntegration deletes an organization webhintegrationook
785
907
  *
786
908
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteIntegration
787
909
  */
788
- export const deleteIntegration = createQueryService({
789
- service: {
790
- methods: {
791
- deleteIntegration: {
792
- name: "DeleteIntegration",
793
- kind: MethodKind.Unary,
794
- I: DeleteIntegrationRequest,
795
- O: DeleteIntegrationResponse,
796
- },
797
- },
798
- typeName: "wg.cosmo.platform.v1.PlatformService",
799
- },
800
- }).deleteIntegration;
910
+ export const deleteIntegration = { ...$queryService.deleteIntegration, ...createUnaryHooks($queryService.deleteIntegration) };
801
911
  /**
802
912
  * DeleteOrganization deletes an organization
803
913
  *
804
914
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOrganization
805
915
  */
806
- export const deleteOrganization = createQueryService({
807
- service: {
808
- methods: {
809
- deleteOrganization: {
810
- name: "DeleteOrganization",
811
- kind: MethodKind.Unary,
812
- I: DeleteOrganizationRequest,
813
- O: DeleteOrganizationResponse,
814
- },
815
- },
816
- typeName: "wg.cosmo.platform.v1.PlatformService",
817
- },
818
- }).deleteOrganization;
916
+ export const deleteOrganization = { ...$queryService.deleteOrganization, ...createUnaryHooks($queryService.deleteOrganization) };
819
917
  /**
820
918
  * LeaveOrganization removes a member from the organization
821
919
  *
822
920
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.LeaveOrganization
823
921
  */
824
- export const leaveOrganization = createQueryService({
825
- service: {
826
- methods: {
827
- leaveOrganization: {
828
- name: "LeaveOrganization",
829
- kind: MethodKind.Unary,
830
- I: LeaveOrganizationRequest,
831
- O: LeaveOrganizationResponse,
832
- },
833
- },
834
- typeName: "wg.cosmo.platform.v1.PlatformService",
835
- },
836
- }).leaveOrganization;
922
+ export const leaveOrganization = { ...$queryService.leaveOrganization, ...createUnaryHooks($queryService.leaveOrganization) };
837
923
  /**
838
924
  * UpdateOrganizationDetails updates the name and slug of the organization
839
925
  *
840
926
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrganizationDetails
841
927
  */
842
- export const updateOrganizationDetails = createQueryService({
843
- service: {
844
- methods: {
845
- updateOrganizationDetails: {
846
- name: "UpdateOrganizationDetails",
847
- kind: MethodKind.Unary,
848
- I: UpdateOrganizationDetailsRequest,
849
- O: UpdateOrganizationDetailsResponse,
850
- },
851
- },
852
- typeName: "wg.cosmo.platform.v1.PlatformService",
853
- },
854
- }).updateOrganizationDetails;
928
+ export const updateOrganizationDetails = { ...$queryService.updateOrganizationDetails, ...createUnaryHooks($queryService.updateOrganizationDetails) };
855
929
  /**
856
930
  * UpdateOrgMemberRole updates the role of an org member
857
931
  *
858
932
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.UpdateOrgMemberRole
859
933
  */
860
- export const updateOrgMemberRole = createQueryService({
861
- service: {
862
- methods: {
863
- updateOrgMemberRole: {
864
- name: "UpdateOrgMemberRole",
865
- kind: MethodKind.Unary,
866
- I: UpdateOrgMemberRoleRequest,
867
- O: UpdateOrgMemberRoleResponse,
868
- },
869
- },
870
- typeName: "wg.cosmo.platform.v1.PlatformService",
871
- },
872
- }).updateOrgMemberRole;
934
+ export const updateOrgMemberRole = { ...$queryService.updateOrgMemberRole, ...createUnaryHooks($queryService.updateOrgMemberRole) };
873
935
  /**
874
936
  * IsGitHubAppInstalled checks if the cosmo github app is installed to a repository
875
937
  *
876
938
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.IsGitHubAppInstalled
877
939
  */
878
- export const isGitHubAppInstalled = createQueryService({
879
- service: {
880
- methods: {
881
- isGitHubAppInstalled: {
882
- name: "IsGitHubAppInstalled",
883
- kind: MethodKind.Unary,
884
- I: IsGitHubAppInstalledRequest,
885
- O: IsGitHubAppInstalledResponse,
886
- },
887
- },
888
- typeName: "wg.cosmo.platform.v1.PlatformService",
889
- },
890
- }).isGitHubAppInstalled;
940
+ export const isGitHubAppInstalled = { ...$queryService.isGitHubAppInstalled, ...createUnaryHooks($queryService.isGitHubAppInstalled) };
941
+ /**
942
+ * CreateOIDCProvider adds an oidc provider to the organization
943
+ *
944
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.CreateOIDCProvider
945
+ */
946
+ export const createOIDCProvider = { ...$queryService.createOIDCProvider, ...createUnaryHooks($queryService.createOIDCProvider) };
947
+ /**
948
+ * GetOIDCProvider gets the oidc provider connected the organization
949
+ *
950
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetOIDCProvider
951
+ */
952
+ export const getOIDCProvider = { ...$queryService.getOIDCProvider, ...createUnaryHooks($queryService.getOIDCProvider) };
953
+ /**
954
+ * DeleteOIDCProvider deletes the oidc provider connected the organization
955
+ *
956
+ * @generated from rpc wg.cosmo.platform.v1.PlatformService.DeleteOIDCProvider
957
+ */
958
+ export const deleteOIDCProvider = { ...$queryService.deleteOIDCProvider, ...createUnaryHooks($queryService.deleteOIDCProvider) };
891
959
  /**
892
960
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetAnalyticsView
893
961
  */
894
- export const getAnalyticsView = createQueryService({
895
- service: {
896
- methods: {
897
- getAnalyticsView: {
898
- name: "GetAnalyticsView",
899
- kind: MethodKind.Unary,
900
- I: GetAnalyticsViewRequest,
901
- O: GetAnalyticsViewResponse,
902
- idempotency: MethodIdempotency.NoSideEffects,
903
- },
904
- },
905
- typeName: "wg.cosmo.platform.v1.PlatformService",
906
- },
907
- }).getAnalyticsView;
962
+ export const getAnalyticsView = { ...$queryService.getAnalyticsView, ...createUnaryHooks($queryService.getAnalyticsView) };
908
963
  /**
909
964
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetDashboardAnalyticsView
910
965
  */
911
- export const getDashboardAnalyticsView = createQueryService({
912
- service: {
913
- methods: {
914
- getDashboardAnalyticsView: {
915
- name: "GetDashboardAnalyticsView",
916
- kind: MethodKind.Unary,
917
- I: GetDashboardAnalyticsViewRequest,
918
- O: GetDashboardAnalyticsViewResponse,
919
- idempotency: MethodIdempotency.NoSideEffects,
920
- },
921
- },
922
- typeName: "wg.cosmo.platform.v1.PlatformService",
923
- },
924
- }).getDashboardAnalyticsView;
966
+ export const getDashboardAnalyticsView = { ...$queryService.getDashboardAnalyticsView, ...createUnaryHooks($queryService.getDashboardAnalyticsView) };
925
967
  /**
926
968
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetTrace
927
969
  */
928
- export const getTrace = createQueryService({
929
- service: {
930
- methods: {
931
- getTrace: {
932
- name: "GetTrace",
933
- kind: MethodKind.Unary,
934
- I: GetTraceRequest,
935
- O: GetTraceResponse,
936
- },
937
- },
938
- typeName: "wg.cosmo.platform.v1.PlatformService",
939
- },
940
- }).getTrace;
970
+ export const getTrace = { ...$queryService.getTrace, ...createUnaryHooks($queryService.getTrace) };
941
971
  /**
942
972
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetGraphMetrics
943
973
  */
944
- export const getGraphMetrics = createQueryService({
945
- service: {
946
- methods: {
947
- getGraphMetrics: {
948
- name: "GetGraphMetrics",
949
- kind: MethodKind.Unary,
950
- I: GetGraphMetricsRequest,
951
- O: GetGraphMetricsResponse,
952
- idempotency: MethodIdempotency.NoSideEffects,
953
- },
954
- },
955
- typeName: "wg.cosmo.platform.v1.PlatformService",
956
- },
957
- }).getGraphMetrics;
974
+ export const getGraphMetrics = { ...$queryService.getGraphMetrics, ...createUnaryHooks($queryService.getGraphMetrics) };
958
975
  /**
959
976
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetMetricsErrorRate
960
977
  */
961
- export const getMetricsErrorRate = createQueryService({
962
- service: {
963
- methods: {
964
- getMetricsErrorRate: {
965
- name: "GetMetricsErrorRate",
966
- kind: MethodKind.Unary,
967
- I: GetMetricsErrorRateRequest,
968
- O: GetMetricsErrorRateResponse,
969
- idempotency: MethodIdempotency.NoSideEffects,
970
- },
971
- },
972
- typeName: "wg.cosmo.platform.v1.PlatformService",
973
- },
974
- }).getMetricsErrorRate;
978
+ export const getMetricsErrorRate = { ...$queryService.getMetricsErrorRate, ...createUnaryHooks($queryService.getMetricsErrorRate) };
975
979
  /**
976
980
  * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetFieldUsage
977
981
  */
978
- export const getFieldUsage = createQueryService({
979
- service: {
980
- methods: {
981
- getFieldUsage: {
982
- name: "GetFieldUsage",
983
- kind: MethodKind.Unary,
984
- I: GetFieldUsageRequest,
985
- O: GetFieldUsageResponse,
986
- idempotency: MethodIdempotency.NoSideEffects,
987
- },
988
- },
989
- typeName: "wg.cosmo.platform.v1.PlatformService",
990
- },
991
- }).getFieldUsage;
982
+ export const getFieldUsage = { ...$queryService.getFieldUsage, ...createUnaryHooks($queryService.getFieldUsage) };
992
983
  //# sourceMappingURL=platform-PlatformService_connectquery.js.map