@distilled.cloud/slack 1.0.0-rc.21 → 1.0.0-rc.22
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.
- package/lib/services/admin.d.ts +4 -4
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/agents.d.ts +54 -28
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +1 -1
- package/lib/services/agents.js.map +1 -1
- package/lib/services/apps.d.ts +62 -2
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +34 -32
- package/lib/services/apps.js.map +1 -1
- package/lib/services/slackbot.d.ts +299 -7
- package/lib/services/slackbot.d.ts.map +1 -1
- package/lib/services/slackbot.js +1 -1
- package/lib/services/slackbot.js.map +1 -1
- package/lib/services.lazy/apps.js +2 -2
- package/package.json +4 -4
- package/src/services/admin.ts +4 -4
- package/src/services/agents.ts +87 -38
- package/src/services/apps.ts +250 -102
- package/src/services/slackbot.ts +685 -66
package/src/services/apps.ts
CHANGED
|
@@ -86,6 +86,38 @@ export interface BulkPutResponse {
|
|
|
86
86
|
/** attribute names and values of the items that failed to be processed */
|
|
87
87
|
failed_items?: BulkPutResponseFailedItemsList | undefined;
|
|
88
88
|
}
|
|
89
|
+
/** IDs of users connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
|
|
90
|
+
export type BulkUpdateRequestConnectedUserIdsList = Array<string>;
|
|
91
|
+
/** IDs of users not connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
|
|
92
|
+
export type BulkUpdateRequestDisconnectedUserIdsList = Array<string>;
|
|
93
|
+
export interface BulkUpdateRequest {
|
|
94
|
+
/** IDs of users connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
|
|
95
|
+
connected_user_ids?: BulkUpdateRequestConnectedUserIdsList | undefined;
|
|
96
|
+
/** IDs of users not connected to the app. One of `connected_user_ids` or `disconnected_user_ids` is required; combined they may not exceed 1000. */
|
|
97
|
+
disconnected_user_ids?: BulkUpdateRequestDisconnectedUserIdsList | undefined;
|
|
98
|
+
}
|
|
99
|
+
/** Users whose stored status changed. Users already at the requested status are omitted. */
|
|
100
|
+
export type BulkUpdateResponseChangedUserIdsList = Array<string>;
|
|
101
|
+
/** Why this user's update did not fully succeed. `user_not_found` also covers undecodable IDs and users outside the token's organization. `duplicate_user_id` means the user appeared in both arrays, so no status was written for them. `clients_not_notified` means the status was written but the user's clients could not be told, so they may still show the previous status. Treat unrecognized values as a generic failure. */
|
|
102
|
+
export type BulkUpdateResponseFailuresItemError =
|
|
103
|
+
| "user_not_found"
|
|
104
|
+
| "duplicate_user_id"
|
|
105
|
+
| "clients_not_notified";
|
|
106
|
+
export interface BulkUpdateResponseFailuresItem {
|
|
107
|
+
user_id: string;
|
|
108
|
+
/** Why this user's update did not fully succeed. `user_not_found` also covers undecodable IDs and users outside the token's organization. `duplicate_user_id` means the user appeared in both arrays, so no status was written for them. `clients_not_notified` means the status was written but the user's clients could not be told, so they may still show the previous status. Treat unrecognized values as a generic failure. */
|
|
109
|
+
error: BulkUpdateResponseFailuresItemError;
|
|
110
|
+
}
|
|
111
|
+
/** Users whose update did not fully succeed. A user can also appear in `changed_user_ids`, when their status was written but a later step was not. A user in neither this array nor `changed_user_ids` was already at the requested status. */
|
|
112
|
+
export type BulkUpdateResponseFailuresList = Array<BulkUpdateResponseFailuresItem>;
|
|
113
|
+
export interface BulkUpdateResponse {
|
|
114
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
115
|
+
ok: boolean;
|
|
116
|
+
/** Users whose stored status changed. Users already at the requested status are omitted. */
|
|
117
|
+
changed_user_ids: BulkUpdateResponseChangedUserIdsList;
|
|
118
|
+
/** Users whose update did not fully succeed. A user can also appear in `changed_user_ids`, when their status was written but a later step was not. A user in neither this array nor `changed_user_ids` was already at the requested status. */
|
|
119
|
+
failures: BulkUpdateResponseFailuresList;
|
|
120
|
+
}
|
|
89
121
|
export interface ConnectionsOpenRequest {}
|
|
90
122
|
export interface ConnectionsOpenResponse {
|
|
91
123
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
@@ -333,6 +365,31 @@ export interface PutDatastoreResponse {
|
|
|
333
365
|
/** attribute names and values of the item */
|
|
334
366
|
item?: PutDatastoreResponseItemMap | undefined;
|
|
335
367
|
}
|
|
368
|
+
/** The connection to render. Its `icon_url` defaults to the app's own avatar when omitted. */
|
|
369
|
+
export interface RequestAuthRequestPrimaryProvider {
|
|
370
|
+
value: string;
|
|
371
|
+
name: unknown;
|
|
372
|
+
description?: unknown | undefined;
|
|
373
|
+
icon_url?: string | undefined;
|
|
374
|
+
auth_url?: string | undefined;
|
|
375
|
+
disconnect_url?: string | undefined;
|
|
376
|
+
is_connected: boolean;
|
|
377
|
+
connected_identity?: unknown | undefined;
|
|
378
|
+
connected_context?: unknown | undefined;
|
|
379
|
+
accessory?: unknown | undefined;
|
|
380
|
+
}
|
|
381
|
+
export interface RequestAuthRequest {
|
|
382
|
+
/** The `trigger_id` from the `user_connection` event. Opens a new modal. When `primary_provider` has an `auth_url`, Slack may open it for the user immediately instead. */
|
|
383
|
+
trigger_id?: string | undefined;
|
|
384
|
+
/** The user whose auth modal to update. Required when `trigger_id` is omitted, and ignored when it is present. */
|
|
385
|
+
user_id?: string | undefined;
|
|
386
|
+
/** The connection to render. Its `icon_url` defaults to the app's own avatar when omitted. */
|
|
387
|
+
primary_provider: RequestAuthRequestPrimaryProvider;
|
|
388
|
+
}
|
|
389
|
+
export interface RequestAuthResponse {
|
|
390
|
+
/** Always `true` (a failed call raises a typed error instead). */
|
|
391
|
+
ok: boolean;
|
|
392
|
+
}
|
|
336
393
|
export interface SetIconRequest {
|
|
337
394
|
/** The ID of the app whose icon you want to set. */
|
|
338
395
|
app_id: string;
|
|
@@ -402,7 +459,7 @@ export interface UpdateManifestResponse {
|
|
|
402
459
|
/** The status that should be set for the user. */
|
|
403
460
|
export type UpdateUserConnectionRequestStatus = "connected" | "disconnected";
|
|
404
461
|
export interface UpdateUserConnectionRequest {
|
|
405
|
-
/** The ID of the user
|
|
462
|
+
/** The ID of the user whose connection status is being updated. */
|
|
406
463
|
user_id: string;
|
|
407
464
|
/** The status that should be set for the user. */
|
|
408
465
|
status: UpdateUserConnectionRequestStatus | (string & {});
|
|
@@ -486,6 +543,24 @@ export const bulkPut: API.OperationMethod<
|
|
|
486
543
|
span: "BulkPut",
|
|
487
544
|
}));
|
|
488
545
|
|
|
546
|
+
export type BulkUpdateError = SlackOpError;
|
|
547
|
+
/** Updates the connection status between an app and many users in one call, for backfilling an existing user base. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `internal_error` -- The connection statuses could not be written. No user was notified, so retry the whole call. - `invalid_auth` -- The token doesn't have access to this endpoint. - `no_user_ids` -- Neither `connected_user_ids` nor `disconnected_user_ids` was provided. At least one is required. - `too_many_users` -- `connected_user_ids` and `disconnected_user_ids` exceed 1000 users combined. Split the sync into smaller batches. See https://docs.slack.dev/reference/methods/apps.user.connection.bulkUpdate */
|
|
548
|
+
export const bulkUpdate: API.OperationMethod<
|
|
549
|
+
BulkUpdateRequest,
|
|
550
|
+
BulkUpdateResponse,
|
|
551
|
+
BulkUpdateError,
|
|
552
|
+
SlackOpContext
|
|
553
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
554
|
+
input: __S(88, __c22, 0) as any as S.Schema<BulkUpdateRequest>,
|
|
555
|
+
output: __S(91, __c22, 3) as any as S.Schema<BulkUpdateResponse>,
|
|
556
|
+
errors: [],
|
|
557
|
+
serviceErrors: SlackServiceErrors,
|
|
558
|
+
protocol: SlackProtocol,
|
|
559
|
+
retry: Retry.Retry,
|
|
560
|
+
telemetry: TELEMETRY,
|
|
561
|
+
span: "BulkUpdate",
|
|
562
|
+
}));
|
|
563
|
+
|
|
489
564
|
export type ConnectionsOpenError = SlackOpError;
|
|
490
565
|
/** Generate a temporary Socket Mode WebSocket URL that your app can connect to in order to receive events and interactive payloads over. Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `forbidden_team` -- The authenticated team cannot use this API - `insecure_request` -- The method was not called via a `POST` request. - `internal_error` -- An unexpected exception with the service has occurred. - `invalid_auth` -- The provided [app-level token](/authentication/tokens#app) wasn't valid. - `missing_args` -- An [app-level token](/authentication/tokens#app) wasn't provided. See https://docs.slack.dev/reference/methods/apps.connections.open */
|
|
491
566
|
export const connectionsOpen: API.OperationMethod<
|
|
@@ -494,8 +569,8 @@ export const connectionsOpen: API.OperationMethod<
|
|
|
494
569
|
ConnectionsOpenError,
|
|
495
570
|
SlackOpContext
|
|
496
571
|
> = /*@__PURE__*/ API.make(() => ({
|
|
497
|
-
input: __S(
|
|
498
|
-
output: __S(
|
|
572
|
+
input: __S(92, __c23, 0) as any as S.Schema<ConnectionsOpenRequest>,
|
|
573
|
+
output: __S(93, __c23, 1) as any as S.Schema<ConnectionsOpenResponse>,
|
|
499
574
|
errors: [],
|
|
500
575
|
serviceErrors: SlackServiceErrors,
|
|
501
576
|
protocol: SlackProtocol,
|
|
@@ -512,8 +587,8 @@ export const createManifest: API.OperationMethod<
|
|
|
512
587
|
CreateManifestError,
|
|
513
588
|
SlackOpContext
|
|
514
589
|
> = /*@__PURE__*/ API.make(() => ({
|
|
515
|
-
input: __S(
|
|
516
|
-
output: __S(
|
|
590
|
+
input: __S(96, __c24, 0) as any as S.Schema<CreateManifestRequest>,
|
|
591
|
+
output: __S(98, __c24, 2) as any as S.Schema<CreateManifestResponse>,
|
|
517
592
|
errors: [],
|
|
518
593
|
serviceErrors: SlackServiceErrors,
|
|
519
594
|
protocol: SlackProtocol,
|
|
@@ -530,8 +605,8 @@ export const datastoreCount: API.OperationMethod<
|
|
|
530
605
|
DatastoreCountError,
|
|
531
606
|
SlackOpContext
|
|
532
607
|
> = /*@__PURE__*/ API.make(() => ({
|
|
533
|
-
input: __S(
|
|
534
|
-
output: __S(
|
|
608
|
+
input: __S(100, __c25, 0) as any as S.Schema<DatastoreCountRequest>,
|
|
609
|
+
output: __S(101, __c25, 1) as any as S.Schema<DatastoreCountResponse>,
|
|
535
610
|
errors: [],
|
|
536
611
|
serviceErrors: SlackServiceErrors,
|
|
537
612
|
protocol: SlackProtocol,
|
|
@@ -550,8 +625,8 @@ export const datastoreQuery: API.PaginatedOperationMethod<
|
|
|
550
625
|
DatastoreQueryResponseItemsItemMap
|
|
551
626
|
> = /*@__PURE__*/ API.makePaginated(
|
|
552
627
|
() => ({
|
|
553
|
-
input: __S(
|
|
554
|
-
output: __S(
|
|
628
|
+
input: __S(104, __c26, 0) as any as S.Schema<DatastoreQueryRequest>,
|
|
629
|
+
output: __S(105, __c26, 1) as any as S.Schema<DatastoreQueryResponse>,
|
|
555
630
|
errors: [],
|
|
556
631
|
serviceErrors: SlackServiceErrors,
|
|
557
632
|
protocol: SlackProtocol,
|
|
@@ -577,8 +652,8 @@ export const deleteAuthExternal: API.OperationMethod<
|
|
|
577
652
|
DeleteAuthExternalError,
|
|
578
653
|
SlackOpContext
|
|
579
654
|
> = /*@__PURE__*/ API.make(() => ({
|
|
580
|
-
input: __S(
|
|
581
|
-
output: __S(
|
|
655
|
+
input: __S(112, __c28, 0) as any as S.Schema<DeleteAuthExternalRequest>,
|
|
656
|
+
output: __S(116, __c29, 0) as any as S.Schema<DeleteAuthExternalResponse>,
|
|
582
657
|
errors: [],
|
|
583
658
|
serviceErrors: SlackServiceErrors,
|
|
584
659
|
protocol: SlackProtocol,
|
|
@@ -595,8 +670,8 @@ export const deleteDatastore: API.OperationMethod<
|
|
|
595
670
|
DeleteDatastoreError,
|
|
596
671
|
SlackOpContext
|
|
597
672
|
> = /*@__PURE__*/ API.make(() => ({
|
|
598
|
-
input: __S(
|
|
599
|
-
output: __S(
|
|
673
|
+
input: __S(120, __c30, 0) as any as S.Schema<DeleteDatastoreRequest>,
|
|
674
|
+
output: __S(116, __c29, 0) as any as S.Schema<DeleteDatastoreResponse>,
|
|
600
675
|
errors: [],
|
|
601
676
|
serviceErrors: SlackServiceErrors,
|
|
602
677
|
protocol: SlackProtocol,
|
|
@@ -613,8 +688,8 @@ export const deleteManifest: API.OperationMethod<
|
|
|
613
688
|
DeleteManifestError,
|
|
614
689
|
SlackOpContext
|
|
615
690
|
> = /*@__PURE__*/ API.make(() => ({
|
|
616
|
-
input: __S(
|
|
617
|
-
output: __S(
|
|
691
|
+
input: __S(20, __c5, 0) as any as S.Schema<DeleteManifestRequest>,
|
|
692
|
+
output: __S(116, __c29, 0) as any as S.Schema<DeleteManifestResponse>,
|
|
618
693
|
errors: [],
|
|
619
694
|
serviceErrors: SlackServiceErrors,
|
|
620
695
|
protocol: SlackProtocol,
|
|
@@ -631,8 +706,8 @@ export const exportManifest: API.OperationMethod<
|
|
|
631
706
|
ExportManifestError,
|
|
632
707
|
SlackOpContext
|
|
633
708
|
> = /*@__PURE__*/ API.make(() => ({
|
|
634
|
-
input: __S(
|
|
635
|
-
output: __S(
|
|
709
|
+
input: __S(24, __c6, 0) as any as S.Schema<ExportManifestRequest>,
|
|
710
|
+
output: __S(25, __c6, 1) as any as S.Schema<ExportManifestResponse>,
|
|
636
711
|
errors: [],
|
|
637
712
|
serviceErrors: SlackServiceErrors,
|
|
638
713
|
protocol: SlackProtocol,
|
|
@@ -649,8 +724,8 @@ export const getAuthExternal: API.OperationMethod<
|
|
|
649
724
|
GetAuthExternalError,
|
|
650
725
|
SlackOpContext
|
|
651
726
|
> = /*@__PURE__*/ API.make(() => ({
|
|
652
|
-
input: __S(
|
|
653
|
-
output: __S(
|
|
727
|
+
input: __S(28, __c7, 0) as any as S.Schema<GetAuthExternalRequest>,
|
|
728
|
+
output: __S(29, __c7, 1) as any as S.Schema<GetAuthExternalResponse>,
|
|
654
729
|
errors: [],
|
|
655
730
|
serviceErrors: SlackServiceErrors,
|
|
656
731
|
protocol: SlackProtocol,
|
|
@@ -667,8 +742,8 @@ export const getDatastore: API.OperationMethod<
|
|
|
667
742
|
GetDatastoreError,
|
|
668
743
|
SlackOpContext
|
|
669
744
|
> = /*@__PURE__*/ API.make(() => ({
|
|
670
|
-
input: __S(
|
|
671
|
-
output: __S(
|
|
745
|
+
input: __S(32, __c8, 0) as any as S.Schema<GetDatastoreRequest>,
|
|
746
|
+
output: __S(36, __c9, 0) as any as S.Schema<GetDatastoreResponse>,
|
|
672
747
|
errors: [],
|
|
673
748
|
serviceErrors: SlackServiceErrors,
|
|
674
749
|
protocol: SlackProtocol,
|
|
@@ -687,8 +762,8 @@ export const listActivities: API.PaginatedOperationMethod<
|
|
|
687
762
|
unknown
|
|
688
763
|
> = /*@__PURE__*/ API.makePaginated(
|
|
689
764
|
() => ({
|
|
690
|
-
input: __S(
|
|
691
|
-
output: __S(
|
|
765
|
+
input: __S(40, __c10, 0) as any as S.Schema<ListActivitiesRequest>,
|
|
766
|
+
output: __S(42, __c10, 2) as any as S.Schema<ListActivitiesResponse>,
|
|
692
767
|
errors: [],
|
|
693
768
|
serviceErrors: SlackServiceErrors,
|
|
694
769
|
protocol: SlackProtocol,
|
|
@@ -716,8 +791,8 @@ export const listEventAuthorizations: API.PaginatedOperationMethod<
|
|
|
716
791
|
ListEventAuthorizationsResponseAuthorizationsItem
|
|
717
792
|
> = /*@__PURE__*/ API.makePaginated(
|
|
718
793
|
() => ({
|
|
719
|
-
input: __S(
|
|
720
|
-
output: __S(
|
|
794
|
+
input: __S(44, __c11, 0) as any as S.Schema<ListEventAuthorizationsRequest>,
|
|
795
|
+
output: __S(47, __c11, 3) as any as S.Schema<ListEventAuthorizationsResponse>,
|
|
721
796
|
errors: [],
|
|
722
797
|
serviceErrors: SlackServiceErrors,
|
|
723
798
|
protocol: SlackProtocol,
|
|
@@ -743,8 +818,8 @@ export const putDatastore: API.OperationMethod<
|
|
|
743
818
|
PutDatastoreError,
|
|
744
819
|
SlackOpContext
|
|
745
820
|
> = /*@__PURE__*/ API.make(() => ({
|
|
746
|
-
input: __S(
|
|
747
|
-
output: __S(
|
|
821
|
+
input: __S(48, __c12, 0) as any as S.Schema<PutDatastoreRequest>,
|
|
822
|
+
output: __S(36, __c9, 0) as any as S.Schema<PutDatastoreResponse>,
|
|
748
823
|
errors: [],
|
|
749
824
|
serviceErrors: SlackServiceErrors,
|
|
750
825
|
protocol: SlackProtocol,
|
|
@@ -753,6 +828,24 @@ export const putDatastore: API.OperationMethod<
|
|
|
753
828
|
span: "PutDatastore",
|
|
754
829
|
}));
|
|
755
830
|
|
|
831
|
+
export type RequestAuthError = SlackOpError;
|
|
832
|
+
/** Opens or updates a standardized authentication modal for the calling app. Pass `trigger_id` to open a modal, or `user_id` to update the one already open for that user. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` -- An argument failed validation. Every provider must set `is_connected` explicitly: Slack records that state against the user, so it cannot be defaulted. - `invalid_auth` -- The token is invalid or the app could not be authenticated. - `invalid_trigger` -- The `trigger_id` is expired or invalid. - `expired_trigger_id` -- The **Connect** click behind this `trigger_id` is too old: about 3 seconds after the click, the user is told the app didn't respond. Answer the `user_connection` event within 3 seconds. - `invalid_view` -- The auth modal for this user exists but could not be updated. A user with no modal open returns ok with the auth_modal_not_found warning instead. - `missing_target` -- Neither trigger_id nor user_id was provided. - `user_not_found` -- Value passed for `user_id` was invalid, or the user is not reachable by this token. - `invalid_accessory_url` -- An accessory overflow option has a URL with a disallowed scheme. Use HTTP or HTTPs. - `invalid_auth_url` -- The provider's `auth_url` is not a plain HTTPs URL on a valid domain. Credentials embedded in the authority (for example https://user:pass@example.com) are rejected, because they move the real destination host away from the one the URL appears to name. IP literals and control characters are also rejected. The one exception is `localhost` or `127.0.0.1` from an app that isn't distributed or listed in the Slack Marketplace, shown to one of the app's collaborators. The same URL shown to anyone else gets this error. - `auth_url_host_not_registered` -- The provider's `auth_url` is on a host the app has not registered. Add the host to `features.user_connections.auth_hosts` in the app manifest; a registered host also covers its subdomains. - `invalid_disconnect_url` -- The provider's `disconnect_url` is not a plain HTTPs URL on a valid domain. Screened identically to `auth_url`: credentials embedded in the authority, IP literals and control characters are all rejected, because the Disconnect renders in Slack chrome under the app's name. The same localhost exception applies. - `disconnect_url_host_not_registered` -- The provider's `disconnect_url` is on a host the app has not registered. Add the host to `features.user_connections.auth_hosts` in the app manifest; a registered host also covers its subdomains. - `app_not_found` -- The app was not found. - `feature_not_enabled` -- The standardized authentication modal is not available for this team, or for the user the modal would be shown to. - `user_connections_not_enabled` -- The app has not declared the `features.user_connections` capability in its manifest, so it cannot present the standardized connect modal. - `view_open_failed` -- The modal view could not be opened. The `trigger_id` was valid but the view creation failed. See https://docs.slack.dev/reference/methods/apps.user.connection.requestAuth */
|
|
833
|
+
export const requestAuth: API.OperationMethod<
|
|
834
|
+
RequestAuthRequest,
|
|
835
|
+
RequestAuthResponse,
|
|
836
|
+
RequestAuthError,
|
|
837
|
+
SlackOpContext
|
|
838
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
839
|
+
input: __S(53, __c13, 1) as any as S.Schema<RequestAuthRequest>,
|
|
840
|
+
output: __S(116, __c29, 0) as any as S.Schema<RequestAuthResponse>,
|
|
841
|
+
errors: [],
|
|
842
|
+
serviceErrors: SlackServiceErrors,
|
|
843
|
+
protocol: SlackProtocol,
|
|
844
|
+
retry: Retry.Retry,
|
|
845
|
+
telemetry: TELEMETRY,
|
|
846
|
+
span: "RequestAuth",
|
|
847
|
+
}));
|
|
848
|
+
|
|
756
849
|
export type SetIconError = SlackOpError;
|
|
757
850
|
/** Sets the app icon Required scopes -- user: `app_configurations:write` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_owned_by_manager_app` -- The specified app is not managed by the calling manager app. A manager app can only set icons for apps that it originally created via apps.manifest.create. - `error_bad_format` -- Icon must be a valid image file. - `internal_error` -- Internal error. - `icon_not_accessible` -- The icon URL is not accessible or returned an error (e.g. 404 Not Found). Please verify the URL is publicly reachable and returns a valid image. - `invalid_app` -- App does not exist. - `invalid_app_id` -- App ID is not valid. - `invalid_icon_size` -- Icon dimensions must be between 512x512px and 2000x2000px. - `invalid_parameters` -- Only one of `URL` or `file` can be defined. - `missing_arguments` -- One of `URL` or `file` must be provided. - `no_permission` -- User does not have required permissions for app. - `unable_to_open_file` -- Error with file upload. - `app_edit_disabled` -- The app cannot be edited. See https://docs.slack.dev/reference/methods/apps.icon.set */
|
|
758
851
|
export const setIcon: API.OperationMethod<
|
|
@@ -761,8 +854,8 @@ export const setIcon: API.OperationMethod<
|
|
|
761
854
|
SetIconError,
|
|
762
855
|
SlackOpContext
|
|
763
856
|
> = /*@__PURE__*/ API.make(() => ({
|
|
764
|
-
input: __S(
|
|
765
|
-
output: __S(
|
|
857
|
+
input: __S(56, __c14, 0) as any as S.Schema<SetIconRequest>,
|
|
858
|
+
output: __S(116, __c29, 0) as any as S.Schema<SetIconResponse>,
|
|
766
859
|
errors: [],
|
|
767
860
|
serviceErrors: SlackServiceErrors,
|
|
768
861
|
protocol: SlackProtocol,
|
|
@@ -779,8 +872,8 @@ export const setManagedPermissions: API.OperationMethod<
|
|
|
779
872
|
SetManagedPermissionsError,
|
|
780
873
|
SlackOpContext
|
|
781
874
|
> = /*@__PURE__*/ API.make(() => ({
|
|
782
|
-
input: __S(
|
|
783
|
-
output: __S(
|
|
875
|
+
input: __S(60, __c15, 0) as any as S.Schema<SetManagedPermissionsRequest>,
|
|
876
|
+
output: __S(116, __c29, 0) as any as S.Schema<SetManagedPermissionsResponse>,
|
|
784
877
|
errors: [],
|
|
785
878
|
serviceErrors: SlackServiceErrors,
|
|
786
879
|
protocol: SlackProtocol,
|
|
@@ -797,8 +890,8 @@ export const uninstallApp: API.OperationMethod<
|
|
|
797
890
|
UninstallAppError,
|
|
798
891
|
SlackOpContext
|
|
799
892
|
> = /*@__PURE__*/ API.make(() => ({
|
|
800
|
-
input: __S(
|
|
801
|
-
output: __S(
|
|
893
|
+
input: __S(68, __c17, 0) as any as S.Schema<UninstallAppRequest>,
|
|
894
|
+
output: __S(69, __c17, 1) as any as S.Schema<UninstallAppResponse>,
|
|
802
895
|
errors: [],
|
|
803
896
|
serviceErrors: SlackServiceErrors,
|
|
804
897
|
protocol: SlackProtocol,
|
|
@@ -815,8 +908,8 @@ export const updateDatastore: API.OperationMethod<
|
|
|
815
908
|
UpdateDatastoreError,
|
|
816
909
|
SlackOpContext
|
|
817
910
|
> = /*@__PURE__*/ API.make(() => ({
|
|
818
|
-
input: __S(
|
|
819
|
-
output: __S(
|
|
911
|
+
input: __S(72, __c18, 0) as any as S.Schema<UpdateDatastoreRequest>,
|
|
912
|
+
output: __S(36, __c9, 0) as any as S.Schema<UpdateDatastoreResponse>,
|
|
820
913
|
errors: [],
|
|
821
914
|
serviceErrors: SlackServiceErrors,
|
|
822
915
|
protocol: SlackProtocol,
|
|
@@ -833,8 +926,8 @@ export const updateManifest: API.OperationMethod<
|
|
|
833
926
|
UpdateManifestError,
|
|
834
927
|
SlackOpContext
|
|
835
928
|
> = /*@__PURE__*/ API.make(() => ({
|
|
836
|
-
input: __S(
|
|
837
|
-
output: __S(
|
|
929
|
+
input: __S(76, __c19, 0) as any as S.Schema<UpdateManifestRequest>,
|
|
930
|
+
output: __S(77, __c19, 1) as any as S.Schema<UpdateManifestResponse>,
|
|
838
931
|
errors: [],
|
|
839
932
|
serviceErrors: SlackServiceErrors,
|
|
840
933
|
protocol: SlackProtocol,
|
|
@@ -844,15 +937,15 @@ export const updateManifest: API.OperationMethod<
|
|
|
844
937
|
}));
|
|
845
938
|
|
|
846
939
|
export type UpdateUserConnectionError = SlackOpError;
|
|
847
|
-
/** Updates the connection status between a user and an app.
|
|
940
|
+
/** Updates the connection status between a user and an app. Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `app_not_found` -- The app was not found. - `invalid_auth` -- The token doesn't have access to this endpoint. - `app_not_subscribed` -- The app is not subscribed to the required events. - `user_not_found` -- Value passed for `user_id` was invalid. - `missing_scope` -- The token provided doesn't have the required scopes. - `internal_error` -- The connection status could not be written. Retry the call. See https://docs.slack.dev/reference/methods/apps.user.connection.update */
|
|
848
941
|
export const updateUserConnection: API.OperationMethod<
|
|
849
942
|
UpdateUserConnectionRequest,
|
|
850
943
|
UpdateUserConnectionResponse,
|
|
851
944
|
UpdateUserConnectionError,
|
|
852
945
|
SlackOpContext
|
|
853
946
|
> = /*@__PURE__*/ API.make(() => ({
|
|
854
|
-
input: __S(
|
|
855
|
-
output: __S(
|
|
947
|
+
input: __S(80, __c20, 0) as any as S.Schema<UpdateUserConnectionRequest>,
|
|
948
|
+
output: __S(116, __c29, 0) as any as S.Schema<UpdateUserConnectionResponse>,
|
|
856
949
|
errors: [],
|
|
857
950
|
serviceErrors: SlackServiceErrors,
|
|
858
951
|
protocol: SlackProtocol,
|
|
@@ -869,8 +962,8 @@ export const validateManifest: API.OperationMethod<
|
|
|
869
962
|
ValidateManifestError,
|
|
870
963
|
SlackOpContext
|
|
871
964
|
> = /*@__PURE__*/ API.make(() => ({
|
|
872
|
-
input: __S(
|
|
873
|
-
output: __S(
|
|
965
|
+
input: __S(84, __c21, 0) as any as S.Schema<ValidateManifestRequest>,
|
|
966
|
+
output: __S(87, __c21, 3) as any as S.Schema<ValidateManifestResponse>,
|
|
874
967
|
errors: [],
|
|
875
968
|
serviceErrors: SlackServiceErrors,
|
|
876
969
|
protocol: SlackProtocol,
|
|
@@ -938,6 +1031,16 @@ function __c4(j: number): any {
|
|
|
938
1031
|
}
|
|
939
1032
|
}
|
|
940
1033
|
function __c5(j: number): any {
|
|
1034
|
+
switch (j) {
|
|
1035
|
+
case 0:
|
|
1036
|
+
return S.suspend(() =>
|
|
1037
|
+
S.Struct({
|
|
1038
|
+
app_id: S.String,
|
|
1039
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
1040
|
+
).annotate({ identifier: "DeleteManifestRequest" });
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
function __c6(j: number): any {
|
|
941
1044
|
switch (j) {
|
|
942
1045
|
case 0:
|
|
943
1046
|
return S.suspend(() =>
|
|
@@ -954,7 +1057,7 @@ function __c5(j: number): any {
|
|
|
954
1057
|
).annotate({ identifier: "ExportManifestResponse" });
|
|
955
1058
|
}
|
|
956
1059
|
}
|
|
957
|
-
function
|
|
1060
|
+
function __c7(j: number): any {
|
|
958
1061
|
switch (j) {
|
|
959
1062
|
case 0:
|
|
960
1063
|
return S.suspend(() =>
|
|
@@ -973,7 +1076,7 @@ function __c6(j: number): any {
|
|
|
973
1076
|
).annotate({ identifier: "GetAuthExternalResponse" });
|
|
974
1077
|
}
|
|
975
1078
|
}
|
|
976
|
-
function
|
|
1079
|
+
function __c8(j: number): any {
|
|
977
1080
|
switch (j) {
|
|
978
1081
|
case 0:
|
|
979
1082
|
return S.suspend(() =>
|
|
@@ -985,7 +1088,7 @@ function __c7(j: number): any {
|
|
|
985
1088
|
).annotate({ identifier: "GetDatastoreRequest" });
|
|
986
1089
|
}
|
|
987
1090
|
}
|
|
988
|
-
function
|
|
1091
|
+
function __c9(j: number): any {
|
|
989
1092
|
switch (j) {
|
|
990
1093
|
case 0:
|
|
991
1094
|
return S.suspend(() =>
|
|
@@ -997,7 +1100,7 @@ function __c8(j: number): any {
|
|
|
997
1100
|
).annotate({ identifier: "GetDatastoreResponse" });
|
|
998
1101
|
}
|
|
999
1102
|
}
|
|
1000
|
-
function
|
|
1103
|
+
function __c10(j: number): any {
|
|
1001
1104
|
switch (j) {
|
|
1002
1105
|
case 0:
|
|
1003
1106
|
return S.suspend(() =>
|
|
@@ -1030,13 +1133,13 @@ function __c9(j: number): any {
|
|
|
1030
1133
|
return S.suspend(() =>
|
|
1031
1134
|
S.Struct({
|
|
1032
1135
|
ok: S.Boolean,
|
|
1033
|
-
activities: __S(
|
|
1034
|
-
response_metadata: S.optional(__S(
|
|
1136
|
+
activities: __S(41, __c10, 1),
|
|
1137
|
+
response_metadata: S.optional(__S(108, __c27, 0)),
|
|
1035
1138
|
}),
|
|
1036
1139
|
).annotate({ identifier: "ListActivitiesResponse" });
|
|
1037
1140
|
}
|
|
1038
1141
|
}
|
|
1039
|
-
function
|
|
1142
|
+
function __c11(j: number): any {
|
|
1040
1143
|
switch (j) {
|
|
1041
1144
|
case 0:
|
|
1042
1145
|
return S.suspend(() =>
|
|
@@ -1057,19 +1160,19 @@ function __c10(j: number): any {
|
|
|
1057
1160
|
}),
|
|
1058
1161
|
).annotate({ identifier: "ListEventAuthorizationsResponseAuthorizationsItem" });
|
|
1059
1162
|
case 2:
|
|
1060
|
-
return S.Array(__S(
|
|
1163
|
+
return S.Array(__S(45, __c11, 1));
|
|
1061
1164
|
case 3:
|
|
1062
1165
|
return S.suspend(() =>
|
|
1063
1166
|
S.Struct({
|
|
1064
1167
|
ok: S.Boolean,
|
|
1065
1168
|
cursor_next: S.optional(S.String),
|
|
1066
|
-
authorizations: __S(
|
|
1067
|
-
response_metadata: S.optional(__S(
|
|
1169
|
+
authorizations: __S(46, __c11, 2),
|
|
1170
|
+
response_metadata: S.optional(__S(108, __c27, 0)),
|
|
1068
1171
|
}),
|
|
1069
1172
|
).annotate({ identifier: "ListEventAuthorizationsResponse" });
|
|
1070
1173
|
}
|
|
1071
1174
|
}
|
|
1072
|
-
function
|
|
1175
|
+
function __c12(j: number): any {
|
|
1073
1176
|
switch (j) {
|
|
1074
1177
|
case 0:
|
|
1075
1178
|
return S.suspend(() =>
|
|
@@ -1081,7 +1184,34 @@ function __c11(j: number): any {
|
|
|
1081
1184
|
).annotate({ identifier: "PutDatastoreRequest" });
|
|
1082
1185
|
}
|
|
1083
1186
|
}
|
|
1084
|
-
function
|
|
1187
|
+
function __c13(j: number): any {
|
|
1188
|
+
switch (j) {
|
|
1189
|
+
case 0:
|
|
1190
|
+
return S.suspend(() =>
|
|
1191
|
+
S.Struct({
|
|
1192
|
+
value: S.String,
|
|
1193
|
+
name: S.Unknown,
|
|
1194
|
+
description: S.optional(S.Unknown),
|
|
1195
|
+
icon_url: S.optional(S.String),
|
|
1196
|
+
auth_url: S.optional(S.String),
|
|
1197
|
+
disconnect_url: S.optional(S.String),
|
|
1198
|
+
is_connected: S.Boolean,
|
|
1199
|
+
connected_identity: S.optional(S.Unknown),
|
|
1200
|
+
connected_context: S.optional(S.Unknown),
|
|
1201
|
+
accessory: S.optional(S.Unknown),
|
|
1202
|
+
}),
|
|
1203
|
+
).annotate({ identifier: "RequestAuthRequestPrimaryProvider" });
|
|
1204
|
+
case 1:
|
|
1205
|
+
return S.suspend(() =>
|
|
1206
|
+
S.Struct({
|
|
1207
|
+
trigger_id: S.optional(S.String),
|
|
1208
|
+
user_id: S.optional(S.String),
|
|
1209
|
+
primary_provider: __S(52, __c13, 0),
|
|
1210
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.requestAuth", code: 200 })),
|
|
1211
|
+
).annotate({ identifier: "RequestAuthRequest" });
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
function __c14(j: number): any {
|
|
1085
1215
|
switch (j) {
|
|
1086
1216
|
case 0:
|
|
1087
1217
|
return S.suspend(() =>
|
|
@@ -1093,7 +1223,7 @@ function __c12(j: number): any {
|
|
|
1093
1223
|
).annotate({ identifier: "SetIconRequest" });
|
|
1094
1224
|
}
|
|
1095
1225
|
}
|
|
1096
|
-
function
|
|
1226
|
+
function __c15(j: number): any {
|
|
1097
1227
|
switch (j) {
|
|
1098
1228
|
case 0:
|
|
1099
1229
|
return S.suspend(() =>
|
|
@@ -1104,7 +1234,27 @@ function __c13(j: number): any {
|
|
|
1104
1234
|
).annotate({ identifier: "SetManagedPermissionsRequest" });
|
|
1105
1235
|
}
|
|
1106
1236
|
}
|
|
1107
|
-
function
|
|
1237
|
+
function __c16(j: number): any {
|
|
1238
|
+
switch (j) {
|
|
1239
|
+
case 0:
|
|
1240
|
+
return S.suspend(() =>
|
|
1241
|
+
S.Struct({
|
|
1242
|
+
datastore: S.String,
|
|
1243
|
+
items: __S(16, __c4, 0),
|
|
1244
|
+
app_id: S.optional(S.String),
|
|
1245
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
|
|
1246
|
+
).annotate({ identifier: "BulkPutRequest" });
|
|
1247
|
+
case 1:
|
|
1248
|
+
return S.suspend(() =>
|
|
1249
|
+
S.Struct({
|
|
1250
|
+
ok: S.Boolean,
|
|
1251
|
+
datastore: S.optional(S.String),
|
|
1252
|
+
failed_items: S.optional(__S(16, __c4, 0)),
|
|
1253
|
+
}),
|
|
1254
|
+
).annotate({ identifier: "BulkPutResponse" });
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
function __c17(j: number): any {
|
|
1108
1258
|
switch (j) {
|
|
1109
1259
|
case 0:
|
|
1110
1260
|
return S.suspend(() =>
|
|
@@ -1129,7 +1279,7 @@ function __c14(j: number): any {
|
|
|
1129
1279
|
).annotate({ identifier: "UninstallAppResponse" });
|
|
1130
1280
|
}
|
|
1131
1281
|
}
|
|
1132
|
-
function
|
|
1282
|
+
function __c18(j: number): any {
|
|
1133
1283
|
switch (j) {
|
|
1134
1284
|
case 0:
|
|
1135
1285
|
return S.suspend(() =>
|
|
@@ -1141,27 +1291,7 @@ function __c15(j: number): any {
|
|
|
1141
1291
|
).annotate({ identifier: "UpdateDatastoreRequest" });
|
|
1142
1292
|
}
|
|
1143
1293
|
}
|
|
1144
|
-
function
|
|
1145
|
-
switch (j) {
|
|
1146
|
-
case 0:
|
|
1147
|
-
return S.suspend(() =>
|
|
1148
|
-
S.Struct({
|
|
1149
|
-
datastore: S.String,
|
|
1150
|
-
items: __S(16, __c4, 0),
|
|
1151
|
-
app_id: S.optional(S.String),
|
|
1152
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.datastore.bulkPut", code: 200 })),
|
|
1153
|
-
).annotate({ identifier: "BulkPutRequest" });
|
|
1154
|
-
case 1:
|
|
1155
|
-
return S.suspend(() =>
|
|
1156
|
-
S.Struct({
|
|
1157
|
-
ok: S.Boolean,
|
|
1158
|
-
datastore: S.optional(S.String),
|
|
1159
|
-
failed_items: S.optional(__S(16, __c4, 0)),
|
|
1160
|
-
}),
|
|
1161
|
-
).annotate({ identifier: "BulkPutResponse" });
|
|
1162
|
-
}
|
|
1163
|
-
}
|
|
1164
|
-
function __c17(j: number): any {
|
|
1294
|
+
function __c19(j: number): any {
|
|
1165
1295
|
switch (j) {
|
|
1166
1296
|
case 0:
|
|
1167
1297
|
return S.suspend(() =>
|
|
@@ -1180,7 +1310,7 @@ function __c17(j: number): any {
|
|
|
1180
1310
|
).annotate({ identifier: "UpdateManifestResponse" });
|
|
1181
1311
|
}
|
|
1182
1312
|
}
|
|
1183
|
-
function
|
|
1313
|
+
function __c20(j: number): any {
|
|
1184
1314
|
switch (j) {
|
|
1185
1315
|
case 0:
|
|
1186
1316
|
return S.suspend(() =>
|
|
@@ -1191,7 +1321,7 @@ function __c18(j: number): any {
|
|
|
1191
1321
|
).annotate({ identifier: "UpdateUserConnectionRequest" });
|
|
1192
1322
|
}
|
|
1193
1323
|
}
|
|
1194
|
-
function
|
|
1324
|
+
function __c21(j: number): any {
|
|
1195
1325
|
switch (j) {
|
|
1196
1326
|
case 0:
|
|
1197
1327
|
return S.suspend(() =>
|
|
@@ -1209,18 +1339,46 @@ function __c19(j: number): any {
|
|
|
1209
1339
|
}),
|
|
1210
1340
|
).annotate({ identifier: "ValidateManifestResponseWarningsItem" });
|
|
1211
1341
|
case 2:
|
|
1212
|
-
return S.Array(__S(
|
|
1342
|
+
return S.Array(__S(85, __c21, 1));
|
|
1213
1343
|
case 3:
|
|
1214
1344
|
return S.suspend(() =>
|
|
1215
1345
|
S.Struct({
|
|
1216
1346
|
ok: S.Boolean,
|
|
1217
1347
|
errors: __S(4, __c1, 0),
|
|
1218
|
-
warnings: S.optional(__S(
|
|
1348
|
+
warnings: S.optional(__S(86, __c21, 2)),
|
|
1219
1349
|
}),
|
|
1220
1350
|
).annotate({ identifier: "ValidateManifestResponse" });
|
|
1221
1351
|
}
|
|
1222
1352
|
}
|
|
1223
|
-
function
|
|
1353
|
+
function __c22(j: number): any {
|
|
1354
|
+
switch (j) {
|
|
1355
|
+
case 0:
|
|
1356
|
+
return S.suspend(() =>
|
|
1357
|
+
S.Struct({
|
|
1358
|
+
connected_user_ids: S.optional(__S(4, __c1, 0)),
|
|
1359
|
+
disconnected_user_ids: S.optional(__S(4, __c1, 0)),
|
|
1360
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps.user.connection.bulkUpdate", code: 200 })),
|
|
1361
|
+
).annotate({ identifier: "BulkUpdateRequest" });
|
|
1362
|
+
case 1:
|
|
1363
|
+
return S.suspend(() =>
|
|
1364
|
+
S.Struct({
|
|
1365
|
+
user_id: S.String,
|
|
1366
|
+
error: S.String,
|
|
1367
|
+
}),
|
|
1368
|
+
).annotate({ identifier: "BulkUpdateResponseFailuresItem" });
|
|
1369
|
+
case 2:
|
|
1370
|
+
return S.Array(__S(89, __c22, 1));
|
|
1371
|
+
case 3:
|
|
1372
|
+
return S.suspend(() =>
|
|
1373
|
+
S.Struct({
|
|
1374
|
+
ok: S.Boolean,
|
|
1375
|
+
changed_user_ids: __S(4, __c1, 0),
|
|
1376
|
+
failures: __S(90, __c22, 2),
|
|
1377
|
+
}),
|
|
1378
|
+
).annotate({ identifier: "BulkUpdateResponse" });
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
function __c23(j: number): any {
|
|
1224
1382
|
switch (j) {
|
|
1225
1383
|
case 0:
|
|
1226
1384
|
return S.suspend(() =>
|
|
@@ -1235,7 +1393,7 @@ function __c20(j: number): any {
|
|
|
1235
1393
|
).annotate({ identifier: "ConnectionsOpenResponse" });
|
|
1236
1394
|
}
|
|
1237
1395
|
}
|
|
1238
|
-
function
|
|
1396
|
+
function __c24(j: number): any {
|
|
1239
1397
|
switch (j) {
|
|
1240
1398
|
case 0:
|
|
1241
1399
|
return S.suspend(() =>
|
|
@@ -1258,7 +1416,7 @@ function __c21(j: number): any {
|
|
|
1258
1416
|
S.Struct({
|
|
1259
1417
|
ok: S.Boolean,
|
|
1260
1418
|
app_id: S.String,
|
|
1261
|
-
credentials: __S(
|
|
1419
|
+
credentials: __S(97, __c24, 1),
|
|
1262
1420
|
oauth_authorize_url: S.optional(S.String),
|
|
1263
1421
|
team_id: S.optional(S.String),
|
|
1264
1422
|
team_domain: S.optional(S.String),
|
|
@@ -1267,7 +1425,7 @@ function __c21(j: number): any {
|
|
|
1267
1425
|
).annotate({ identifier: "CreateManifestResponse" });
|
|
1268
1426
|
}
|
|
1269
1427
|
}
|
|
1270
|
-
function
|
|
1428
|
+
function __c25(j: number): any {
|
|
1271
1429
|
switch (j) {
|
|
1272
1430
|
case 0:
|
|
1273
1431
|
return S.suspend(() =>
|
|
@@ -1289,7 +1447,7 @@ function __c22(j: number): any {
|
|
|
1289
1447
|
).annotate({ identifier: "DatastoreCountResponse" });
|
|
1290
1448
|
}
|
|
1291
1449
|
}
|
|
1292
|
-
function
|
|
1450
|
+
function __c26(j: number): any {
|
|
1293
1451
|
switch (j) {
|
|
1294
1452
|
case 0:
|
|
1295
1453
|
return S.suspend(() =>
|
|
@@ -1309,12 +1467,12 @@ function __c23(j: number): any {
|
|
|
1309
1467
|
ok: S.Boolean,
|
|
1310
1468
|
datastore: S.optional(S.String),
|
|
1311
1469
|
items: __S(16, __c4, 0),
|
|
1312
|
-
response_metadata: S.optional(__S(
|
|
1470
|
+
response_metadata: S.optional(__S(108, __c27, 0)),
|
|
1313
1471
|
}),
|
|
1314
1472
|
).annotate({ identifier: "DatastoreQueryResponse" });
|
|
1315
1473
|
}
|
|
1316
1474
|
}
|
|
1317
|
-
function
|
|
1475
|
+
function __c27(j: number): any {
|
|
1318
1476
|
switch (j) {
|
|
1319
1477
|
case 0:
|
|
1320
1478
|
return S.suspend(() =>
|
|
@@ -1324,7 +1482,7 @@ function __c24(j: number): any {
|
|
|
1324
1482
|
).annotate({ identifier: "DatastoreQueryResponseResponseMetadata" });
|
|
1325
1483
|
}
|
|
1326
1484
|
}
|
|
1327
|
-
function
|
|
1485
|
+
function __c28(j: number): any {
|
|
1328
1486
|
switch (j) {
|
|
1329
1487
|
case 0:
|
|
1330
1488
|
return S.suspend(() =>
|
|
@@ -1336,7 +1494,7 @@ function __c25(j: number): any {
|
|
|
1336
1494
|
).annotate({ identifier: "DeleteAuthExternalRequest" });
|
|
1337
1495
|
}
|
|
1338
1496
|
}
|
|
1339
|
-
function
|
|
1497
|
+
function __c29(j: number): any {
|
|
1340
1498
|
switch (j) {
|
|
1341
1499
|
case 0:
|
|
1342
1500
|
return S.suspend(() =>
|
|
@@ -1346,7 +1504,7 @@ function __c26(j: number): any {
|
|
|
1346
1504
|
).annotate({ identifier: "DeleteAuthExternalResponse" });
|
|
1347
1505
|
}
|
|
1348
1506
|
}
|
|
1349
|
-
function
|
|
1507
|
+
function __c30(j: number): any {
|
|
1350
1508
|
switch (j) {
|
|
1351
1509
|
case 0:
|
|
1352
1510
|
return S.suspend(() =>
|
|
@@ -1358,16 +1516,6 @@ function __c27(j: number): any {
|
|
|
1358
1516
|
).annotate({ identifier: "DeleteDatastoreRequest" });
|
|
1359
1517
|
}
|
|
1360
1518
|
}
|
|
1361
|
-
function __c28(j: number): any {
|
|
1362
|
-
switch (j) {
|
|
1363
|
-
case 0:
|
|
1364
|
-
return S.suspend(() =>
|
|
1365
|
-
S.Struct({
|
|
1366
|
-
app_id: S.String,
|
|
1367
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps.manifest.delete", code: 200 })),
|
|
1368
|
-
).annotate({ identifier: "DeleteManifestRequest" });
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
1519
|
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1372
1520
|
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1373
1521
|
return (__s[i] ??= __L.at(f, j));
|