@distilled.cloud/slack 1.0.0-rc.14 → 1.0.0-rc.16
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/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +39 -34
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +31 -31
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +41 -41
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +9 -9
- package/lib/pagination.d.ts +2 -2
- package/lib/pagination.js +28 -28
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +61 -59
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +2 -2
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +34 -33
- package/lib/retry.js.map +1 -1
- package/lib/services/admin.d.ts +123 -575
- package/lib/services/admin.d.ts.map +1 -1
- package/lib/services/admin.js +304 -2878
- package/lib/services/agents.d.ts +13 -55
- package/lib/services/agents.d.ts.map +1 -1
- package/lib/services/agents.js +48 -309
- package/lib/services/api.d.ts +0 -4
- package/lib/services/api.d.ts.map +1 -1
- package/lib/services/api.js +16 -18
- package/lib/services/apps.d.ts +25 -106
- package/lib/services/apps.d.ts.map +1 -1
- package/lib/services/apps.js +84 -509
- package/lib/services/assistant.d.ts +6 -40
- package/lib/services/assistant.d.ts.map +1 -1
- package/lib/services/assistant.js +33 -204
- package/lib/services/auth.d.ts +4 -15
- package/lib/services/auth.d.ts.map +1 -1
- package/lib/services/auth.js +22 -90
- package/lib/services/blocks.d.ts +1 -7
- package/lib/services/blocks.d.ts.map +1 -1
- package/lib/services/blocks.js +16 -21
- package/lib/services/bookmarks.d.ts +4 -15
- package/lib/services/bookmarks.d.ts.map +1 -1
- package/lib/services/bookmarks.js +27 -76
- package/lib/services/bots.d.ts +1 -9
- package/lib/services/bots.d.ts.map +1 -1
- package/lib/services/bots.js +17 -54
- package/lib/services/calls.d.ts +6 -22
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -110
- package/lib/services/canvases.d.ts +7 -35
- package/lib/services/canvases.d.ts.map +1 -1
- package/lib/services/canvases.js +39 -135
- package/lib/services/chat.d.ts +14 -83
- package/lib/services/chat.d.ts.map +1 -1
- package/lib/services/chat.js +59 -381
- package/lib/services/conversations.d.ts +31 -116
- package/lib/services/conversations.d.ts.map +1 -1
- package/lib/services/conversations.js +94 -690
- package/lib/services/dialog.d.ts +1 -4
- package/lib/services/dialog.d.ts.map +1 -1
- package/lib/services/dialog.js +13 -17
- package/lib/services/dnd.d.ts +5 -17
- package/lib/services/dnd.d.ts.map +1 -1
- package/lib/services/dnd.js +26 -91
- package/lib/services/emoji.d.ts +1 -8
- package/lib/services/emoji.d.ts.map +1 -1
- package/lib/services/emoji.js +18 -29
- package/lib/services/entity.d.ts +4 -16
- package/lib/services/entity.d.ts.map +1 -1
- package/lib/services/entity.js +29 -71
- package/lib/services/files.d.ts +16 -80
- package/lib/services/files.d.ts.map +1 -1
- package/lib/services/files.js +75 -433
- package/lib/services/functions.d.ts +8 -49
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +45 -203
- package/lib/services/lists.d.ts +13 -55
- package/lib/services/lists.d.ts.map +1 -1
- package/lib/services/lists.js +53 -248
- package/lib/services/migration.d.ts +1 -7
- package/lib/services/migration.d.ts.map +1 -1
- package/lib/services/migration.js +18 -27
- package/lib/services/oauth.d.ts +7 -43
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +34 -289
- package/lib/services/openid.d.ts +3 -10
- package/lib/services/openid.d.ts.map +1 -1
- package/lib/services/openid.js +19 -79
- package/lib/services/pins.d.ts +3 -13
- package/lib/services/pins.d.ts.map +1 -1
- package/lib/services/pins.js +27 -61
- package/lib/services/reactions.d.ts +5 -17
- package/lib/services/reactions.d.ts.map +1 -1
- package/lib/services/reactions.js +30 -96
- package/lib/services/reminders.d.ts +5 -17
- package/lib/services/reminders.d.ts.map +1 -1
- package/lib/services/reminders.js +33 -83
- package/lib/services/rtm.d.ts +2 -11
- package/lib/services/rtm.d.ts.map +1 -1
- package/lib/services/rtm.js +22 -56
- package/lib/services/search.d.ts +4 -35
- package/lib/services/search.d.ts.map +1 -1
- package/lib/services/search.js +28 -167
- package/lib/services/stars.d.ts +4 -26
- package/lib/services/stars.d.ts.map +1 -1
- package/lib/services/stars.js +28 -128
- package/lib/services/team.d.ts +11 -63
- package/lib/services/team.d.ts.map +1 -1
- package/lib/services/team.js +45 -289
- package/lib/services/tooling.d.ts +2 -5
- package/lib/services/tooling.d.ts.map +1 -1
- package/lib/services/tooling.js +15 -28
- package/lib/services/usergroups.d.ts +7 -31
- package/lib/services/usergroups.d.ts.map +1 -1
- package/lib/services/usergroups.js +40 -146
- package/lib/services/users.d.ts +14 -48
- package/lib/services/users.d.ts.map +1 -1
- package/lib/services/users.js +54 -249
- package/lib/services/views.d.ts +4 -14
- package/lib/services/views.d.ts.map +1 -1
- package/lib/services/views.js +28 -73
- package/lib/services/workflows.d.ts +8 -51
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +37 -188
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +8 -8
- package/package.json +14 -10
- package/src/credentials.ts +20 -21
- package/src/errors.ts +31 -27
- package/src/index.ts +1 -1
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +30 -29
- package/src/retry.ts +6 -6
- package/src/services/admin.ts +2717 -3451
- package/src/services/agents.ts +380 -370
- package/src/services/api.ts +31 -21
- package/src/services/apps.ts +569 -621
- package/src/services/assistant.ts +235 -270
- package/src/services/auth.ts +118 -100
- package/src/services/blocks.ts +33 -29
- package/src/services/bookmarks.ts +101 -83
- package/src/services/bots.ts +74 -67
- package/src/services/calls.ts +118 -124
- package/src/services/canvases.ts +171 -178
- package/src/services/chat.ts +428 -496
- package/src/services/conversations.ts +675 -761
- package/src/services/dialog.ts +30 -17
- package/src/services/dnd.ts +125 -99
- package/src/services/emoji.ts +46 -42
- package/src/services/entity.ts +94 -92
- package/src/services/files.ts +536 -531
- package/src/services/functions.ts +209 -274
- package/src/services/lists.ts +289 -304
- package/src/services/migration.ts +39 -37
- package/src/services/oauth.ts +345 -361
- package/src/services/openid.ts +137 -122
- package/src/services/pins.ts +83 -70
- package/src/services/reactions.ts +119 -103
- package/src/services/reminders.ts +112 -90
- package/src/services/rtm.ts +73 -65
- package/src/services/search.ts +193 -244
- package/src/services/stars.ts +101 -160
- package/src/services/team.ts +333 -369
- package/src/services/tooling.ts +43 -30
- package/src/services/usergroups.ts +175 -179
- package/src/services/users.ts +301 -268
- package/src/services/views.ts +85 -80
- package/src/services/workflows.ts +184 -269
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -288
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/admin.js.map +0 -1
- package/lib/services/agents.js.map +0 -1
- package/lib/services/api.js.map +0 -1
- package/lib/services/apps.js.map +0 -1
- package/lib/services/assistant.js.map +0 -1
- package/lib/services/auth.js.map +0 -1
- package/lib/services/blocks.js.map +0 -1
- package/lib/services/bookmarks.js.map +0 -1
- package/lib/services/bots.js.map +0 -1
- package/lib/services/calls.js.map +0 -1
- package/lib/services/canvases.js.map +0 -1
- package/lib/services/chat.js.map +0 -1
- package/lib/services/conversations.js.map +0 -1
- package/lib/services/dialog.js.map +0 -1
- package/lib/services/dnd.js.map +0 -1
- package/lib/services/emoji.js.map +0 -1
- package/lib/services/entity.js.map +0 -1
- package/lib/services/files.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/lists.js.map +0 -1
- package/lib/services/migration.js.map +0 -1
- package/lib/services/oauth.js.map +0 -1
- package/lib/services/openid.js.map +0 -1
- package/lib/services/pins.js.map +0 -1
- package/lib/services/reactions.js.map +0 -1
- package/lib/services/reminders.js.map +0 -1
- package/lib/services/rtm.js.map +0 -1
- package/lib/services/search.js.map +0 -1
- package/lib/services/stars.js.map +0 -1
- package/lib/services/team.js.map +0 -1
- package/lib/services/tooling.js.map +0 -1
- package/lib/services/usergroups.js.map +0 -1
- package/lib/services/users.js.map +0 -1
- package/lib/services/views.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -372
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../src/services/team.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEjD,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAGlD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC;AACjD,eAAO,MAAM,4BAA4B,KAAW,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC;AAC5F,eAAO,MAAM,uBAAuB,KAAuD,CAAC;AAE5F,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qUAAqU;IACrU,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iPAAiP;IACjP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,eAAO,MAAM,iBAAiB,EAS4B,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEtF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,C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,CAOb,CAAC;AAEJ,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC;AACzC,2pBAA2pB;AAC3pB,eAAO,MAAM,QAAQ,EAAE,GAAG,CAAC,eAAe,CACxC,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,cAAc,CAOb,CAAC"}
|
package/lib/services/team.js
CHANGED
|
@@ -1,296 +1,52 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
5
6
|
import { slackPaginate } from "../pagination.js";
|
|
6
7
|
import { SlackProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})).
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
53
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
54
|
-
user: S.optional(S.String.pipe(T.Query())),
|
|
55
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
56
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.billableInfo", code: 200 }))).annotate({ identifier: "BillableInfoRequest" });
|
|
57
|
-
export const BillableInfoResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
58
|
-
export const BillableInfoResponseBillableInfoMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
59
|
-
export const BillableInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
60
|
-
ok: S.Boolean,
|
|
61
|
-
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
62
|
-
billable_info: BillableInfoResponseBillableInfoMap,
|
|
63
|
-
})).annotate({ identifier: "BillableInfoResponse" });
|
|
64
|
-
export const BillingInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.billing.info", code: 200 }))).annotate({ identifier: "BillingInfoRequest" });
|
|
65
|
-
export const BillingInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
66
|
-
ok: S.Boolean,
|
|
67
|
-
plan: S.String,
|
|
68
|
-
})).annotate({ identifier: "BillingInfoResponse" });
|
|
69
|
-
export const DisconnectExternalTeamRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
-
target_team: S.String,
|
|
71
|
-
}).pipe(T.Http({
|
|
72
|
-
method: "POST",
|
|
73
|
-
uri: "/team.externalTeams.disconnect",
|
|
74
|
-
code: 200,
|
|
75
|
-
contentType: "form-urlencoded",
|
|
76
|
-
}))).annotate({
|
|
77
|
-
identifier: "DisconnectExternalTeamRequest",
|
|
78
|
-
});
|
|
79
|
-
export const DisconnectExternalTeamResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
ok: S.Boolean,
|
|
81
|
-
job_enqueued: S.Boolean,
|
|
82
|
-
})).annotate({
|
|
83
|
-
identifier: "DisconnectExternalTeamResponse",
|
|
84
|
-
});
|
|
85
|
-
export const GetProfileRequestVisibility = S.String;
|
|
86
|
-
export const GetProfileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
87
|
-
visibility: S.optional(GetProfileRequestVisibility.pipe(T.Query())),
|
|
88
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.profile.get", code: 200 }))).annotate({ identifier: "GetProfileRequest" });
|
|
89
|
-
export const GetProfileResponseProfileFieldsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
90
|
-
export const GetProfileResponseProfileSectionsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
91
|
-
export const GetProfileResponseProfile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
-
fields: S.optional(GetProfileResponseProfileFieldsList),
|
|
93
|
-
sections: S.optional(GetProfileResponseProfileSectionsList),
|
|
94
|
-
})).annotate({
|
|
95
|
-
identifier: "GetProfileResponseProfile",
|
|
96
|
-
});
|
|
97
|
-
export const GetProfileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
-
ok: S.Boolean,
|
|
99
|
-
profile: GetProfileResponseProfile,
|
|
100
|
-
})).annotate({ identifier: "GetProfileResponse" });
|
|
101
|
-
export const IntegrationLogsRequestChangeType = S.String;
|
|
102
|
-
export const IntegrationLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
103
|
-
app_id: S.optional(S.String.pipe(T.Query())),
|
|
104
|
-
change_type: S.optional(IntegrationLogsRequestChangeType.pipe(T.Query())),
|
|
105
|
-
count: S.optional(S.String.pipe(T.Query())),
|
|
106
|
-
page: S.optional(S.String.pipe(T.Query())),
|
|
107
|
-
service_id: S.optional(S.String.pipe(T.Query())),
|
|
108
|
-
team_id: S.optional(S.String.pipe(T.Query())),
|
|
109
|
-
user: S.optional(S.String.pipe(T.Query())),
|
|
110
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.integrationLogs", code: 200 }))).annotate({ identifier: "IntegrationLogsRequest" });
|
|
111
|
-
export const IntegrationLogsResponseLogsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
112
|
-
export const IntegrationLogsResponseLogsList = /*@__PURE__*/ S.Array(IntegrationLogsResponseLogsItemMap);
|
|
113
|
-
export const IntegrationLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
ok: S.Boolean,
|
|
115
|
-
paging: S.Unknown,
|
|
116
|
-
logs: IntegrationLogsResponseLogsList,
|
|
117
|
-
})).annotate({ identifier: "IntegrationLogsResponse" });
|
|
118
|
-
export const ListExternalTeamsRequestSortField = S.String;
|
|
119
|
-
export const ListExternalTeamsRequestSortDirection = S.String;
|
|
120
|
-
export const ListExternalTeamsRequestSlackConnectPrefFilterItem = S.String;
|
|
121
|
-
export const ListExternalTeamsRequestSlackConnectPrefFilterList = /*@__PURE__*/ S.Array(ListExternalTeamsRequestSlackConnectPrefFilterItem);
|
|
122
|
-
export const ListExternalTeamsRequestWorkspaceFilterList = /*@__PURE__*/ S.Array(S.String);
|
|
123
|
-
export const ListExternalTeamsRequestConnectionStatusFilter = S.String;
|
|
124
|
-
export const ListExternalTeamsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
126
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
127
|
-
sort_field: S.optional(ListExternalTeamsRequestSortField.pipe(T.Query())),
|
|
128
|
-
sort_direction: S.optional(ListExternalTeamsRequestSortDirection.pipe(T.Query())),
|
|
129
|
-
slack_connect_pref_filter: S.optional(ListExternalTeamsRequestSlackConnectPrefFilterList.pipe(T.Query())),
|
|
130
|
-
workspace_filter: S.optional(ListExternalTeamsRequestWorkspaceFilterList.pipe(T.Query())),
|
|
131
|
-
connection_status_filter: S.optional(ListExternalTeamsRequestConnectionStatusFilter.pipe(T.Query())),
|
|
132
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.externalTeams.list", code: 200 }))).annotate({ identifier: "ListExternalTeamsRequest" });
|
|
133
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem =
|
|
134
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
-
workspace_id: S.String,
|
|
136
|
-
workspace_name: S.String,
|
|
137
|
-
})).annotate({
|
|
138
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem",
|
|
139
|
-
});
|
|
140
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList =
|
|
141
|
-
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesItem);
|
|
142
|
-
export const ListExternalTeamsResponseOrganizationsItemConnectionStatus = S.String;
|
|
143
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem =
|
|
144
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
|
-
team_id: S.String,
|
|
146
|
-
count: S.Number,
|
|
147
|
-
})).annotate({
|
|
148
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem",
|
|
149
|
-
});
|
|
150
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList =
|
|
151
|
-
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem);
|
|
152
|
-
export const ListExternalTeamsResponseOrganizationsItemCanvas = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
153
|
-
total_count: S.Number,
|
|
154
|
-
ownership_details: ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsList,
|
|
155
|
-
})).annotate({
|
|
156
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemCanvas",
|
|
157
|
-
});
|
|
158
|
-
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsItem = ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem;
|
|
159
|
-
export const ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList =
|
|
160
|
-
/*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItemCanvasOwnershipDetailsItem);
|
|
161
|
-
export const ListExternalTeamsResponseOrganizationsItemLists = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
-
total_count: S.Number,
|
|
163
|
-
ownership_details: ListExternalTeamsResponseOrganizationsItemListsOwnershipDetailsList,
|
|
164
|
-
})).annotate({
|
|
165
|
-
identifier: "ListExternalTeamsResponseOrganizationsItemLists",
|
|
166
|
-
});
|
|
167
|
-
export const ListExternalTeamsResponseOrganizationsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
168
|
-
team_id: S.String,
|
|
169
|
-
team_name: S.String,
|
|
170
|
-
team_domain: S.String,
|
|
171
|
-
public_channel_count: S.Number,
|
|
172
|
-
private_channel_count: S.Number,
|
|
173
|
-
im_channel_count: S.Number,
|
|
174
|
-
mpim_channel_count: S.Number,
|
|
175
|
-
connected_workspaces: ListExternalTeamsResponseOrganizationsItemConnectedWorkspacesList,
|
|
176
|
-
slack_connect_prefs: S.Unknown,
|
|
177
|
-
connection_status: ListExternalTeamsResponseOrganizationsItemConnectionStatus,
|
|
178
|
-
last_active_timestamp: S.Number,
|
|
179
|
-
is_sponsored: S.Boolean,
|
|
180
|
-
canvas: S.optional(ListExternalTeamsResponseOrganizationsItemCanvas),
|
|
181
|
-
lists: S.optional(ListExternalTeamsResponseOrganizationsItemLists),
|
|
182
|
-
})).annotate({
|
|
183
|
-
identifier: "ListExternalTeamsResponseOrganizationsItem",
|
|
184
|
-
});
|
|
185
|
-
export const ListExternalTeamsResponseOrganizationsList = /*@__PURE__*/ S.Array(ListExternalTeamsResponseOrganizationsItem);
|
|
186
|
-
export const ListExternalTeamsResponseResponseMetadata = AccessLogsResponseResponseMetadata;
|
|
187
|
-
export const ListExternalTeamsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
188
|
-
ok: S.Boolean,
|
|
189
|
-
organizations: ListExternalTeamsResponseOrganizationsList,
|
|
190
|
-
total_count: S.Number,
|
|
191
|
-
response_metadata: S.optional(AccessLogsResponseResponseMetadata),
|
|
192
|
-
})).annotate({
|
|
193
|
-
identifier: "ListExternalTeamsResponse",
|
|
194
|
-
});
|
|
195
|
-
export const ListPreferencesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/team.preferences.list", code: 200 }))).annotate({ identifier: "ListPreferencesRequest" });
|
|
196
|
-
export const ListPreferencesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
197
|
-
ok: S.Boolean,
|
|
198
|
-
display_real_names: S.Boolean,
|
|
199
|
-
disable_file_uploads: S.String,
|
|
200
|
-
msg_edit_window_mins: S.Number,
|
|
201
|
-
who_can_post_general: S.String,
|
|
202
|
-
})).annotate({ identifier: "ListPreferencesResponse" });
|
|
203
|
-
export const TeamInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
-
domain: S.optional(S.String.pipe(T.Query())),
|
|
205
|
-
team: S.optional(S.String.pipe(T.Query())),
|
|
206
|
-
}).pipe(T.Http({ method: "GET", uri: "/team.info", code: 200 }))).annotate({ identifier: "TeamInfoRequest" });
|
|
207
|
-
export const TeamInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
-
ok: S.Boolean,
|
|
209
|
-
})).annotate({ identifier: "TeamInfoResponse" });
|
|
210
|
-
/** Gets the access logs for the current team. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `missing_scope` — The provided token hasn't obtained the necessary scopes to use this method. - `not_allowed_token_type` — Method was called with an invalid token type - `over_pagination_limit` — It is not possible to request more than 1000 items per page or more than 100 pages. - `paid_only` — This is only available to paid teams. - `token_revoked` — token revoked (generated) - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `invalid_limit` — The value passed for `limit` was not valid. - `invalid_team_id` — The value passed for `team_id` is not valid given the token context. See https://docs.slack.dev/reference/methods/team.accessLogs */
|
|
211
|
-
export const accessLogs = /*@__PURE__*/ API.makePaginated(() => ({
|
|
212
|
-
input: AccessLogsRequest,
|
|
213
|
-
output: AccessLogsResponse,
|
|
214
|
-
errors: [SlackError, SlackRateLimited],
|
|
215
|
-
protocol: SlackProtocol,
|
|
216
|
-
retry: Retry.Retry,
|
|
217
|
-
pagination: {
|
|
218
|
-
mode: "cursor",
|
|
219
|
-
inputToken: "cursor",
|
|
220
|
-
outputToken: "response_metadata.next_cursor",
|
|
221
|
-
items: "logins",
|
|
222
|
-
pageSize: "limit",
|
|
223
|
-
},
|
|
224
|
-
}), slackPaginate);
|
|
225
|
-
/** Gets billable users information for the current team. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `fatal_error` — The server could not complete your operation(s) without encountering a catastrophic error. - `invalid_cursor` — Value passed for `cursor` was not valid or is no longer valid. - `user_not_found` — Unable to find the requested user. See https://docs.slack.dev/reference/methods/team.billableInfo */
|
|
226
|
-
export const billableInfo = /*@__PURE__*/ API.make(() => ({
|
|
227
|
-
input: BillableInfoRequest,
|
|
228
|
-
output: BillableInfoResponse,
|
|
229
|
-
errors: [SlackError, SlackRateLimited],
|
|
230
|
-
protocol: SlackProtocol,
|
|
231
|
-
retry: Retry.Retry,
|
|
232
|
-
}));
|
|
233
|
-
/** Reads a workspace's billing plan information. Required scopes — bot: `team.billing:read`; user: `team.billing:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid token provided. - `invalid_team` — Cannot find a team associated with the authed token. See https://docs.slack.dev/reference/methods/team.billing.info */
|
|
234
|
-
export const billingInfo = /*@__PURE__*/ API.make(() => ({
|
|
235
|
-
input: BillingInfoRequest,
|
|
236
|
-
output: BillingInfoResponse,
|
|
237
|
-
errors: [SlackError, SlackRateLimited],
|
|
238
|
-
protocol: SlackProtocol,
|
|
239
|
-
retry: Retry.Retry,
|
|
240
|
-
}));
|
|
241
|
-
/** Disconnect an external organization. Required scopes — bot: `conversations.connect:manage` Rate limit tier: 1 Method-specific errors (the `error` slug on the SlackError): - `missing_argument` — A required argument is missing. - `restricted_action` — The actor is restricted from archiving or disconnecting. - `invalid_target_team` — target team is invalid See https://docs.slack.dev/reference/methods/team.externalTeams.disconnect */
|
|
242
|
-
export const disconnectExternalTeam = /*@__PURE__*/ API.make(() => ({
|
|
243
|
-
input: DisconnectExternalTeamRequest,
|
|
244
|
-
output: DisconnectExternalTeamResponse,
|
|
245
|
-
errors: [SlackError, SlackRateLimited],
|
|
246
|
-
protocol: SlackProtocol,
|
|
247
|
-
retry: Retry.Retry,
|
|
248
|
-
}));
|
|
249
|
-
/** Retrieve a team's profile. Required scopes — bot: `users.profile:read`; user: `users.profile:read` Rate limit tier: 3 See https://docs.slack.dev/reference/methods/team.profile.get */
|
|
250
|
-
export const getProfile = /*@__PURE__*/ API.make(() => ({
|
|
251
|
-
input: GetProfileRequest,
|
|
252
|
-
output: GetProfileResponse,
|
|
253
|
-
errors: [SlackError, SlackRateLimited],
|
|
254
|
-
protocol: SlackProtocol,
|
|
255
|
-
retry: Retry.Retry,
|
|
256
|
-
}));
|
|
257
|
-
/** Gets the integration logs for the current team. Required scopes — user: `admin` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal Error - `missing_argument` — A required argument is missing. See https://docs.slack.dev/reference/methods/team.integrationLogs */
|
|
258
|
-
export const integrationLogs = /*@__PURE__*/ API.make(() => ({
|
|
259
|
-
input: IntegrationLogsRequest,
|
|
260
|
-
output: IntegrationLogsResponse,
|
|
261
|
-
errors: [SlackError, SlackRateLimited],
|
|
262
|
-
protocol: SlackProtocol,
|
|
263
|
-
retry: Retry.Retry,
|
|
264
|
-
}));
|
|
265
|
-
/** Returns a list of all the external teams connected and details about the connection. Required scopes — bot: `conversations.connect:manage`, `team:read` Rate limit tier: 2 Method-specific errors (the `error` slug on the SlackError): - `invalid_arguments` — One or more of the API arguments are invalid. - `not_allowed` — The user is not allowed to perform the action. - `restricted_action` — The user does not have permission to perform the action. - `internal_error` — There was an internal error processing this request. - `invalid_workspace_filter` — The specified workspace is not valid. - `user_cannot_manage_workspace` — The calling user cannot manage the workspace passed in the workspace filter. See https://docs.slack.dev/reference/methods/team.externalTeams.list */
|
|
266
|
-
export const listExternalTeams = /*@__PURE__*/ API.makePaginated(() => ({
|
|
267
|
-
input: ListExternalTeamsRequest,
|
|
268
|
-
output: ListExternalTeamsResponse,
|
|
269
|
-
errors: [SlackError, SlackRateLimited],
|
|
270
|
-
protocol: SlackProtocol,
|
|
271
|
-
retry: Retry.Retry,
|
|
272
|
-
pagination: {
|
|
273
|
-
mode: "cursor",
|
|
274
|
-
inputToken: "cursor",
|
|
275
|
-
outputToken: "response_metadata.next_cursor",
|
|
276
|
-
items: "organizations",
|
|
277
|
-
pageSize: "limit",
|
|
278
|
-
},
|
|
279
|
-
}), slackPaginate);
|
|
280
|
-
/** Retrieve a list of a workspace's team preferences. Required scopes — bot: `team.preferences:read`; user: `team.preferences:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `invalid_auth` — Invalid token provided. - `invalid_team` — Cannot find a workspace associated with the presented token. See https://docs.slack.dev/reference/methods/team.preferences.list */
|
|
281
|
-
export const listPreferences = /*@__PURE__*/ API.make(() => ({
|
|
282
|
-
input: ListPreferencesRequest,
|
|
283
|
-
output: ListPreferencesResponse,
|
|
284
|
-
errors: [SlackError, SlackRateLimited],
|
|
285
|
-
protocol: SlackProtocol,
|
|
286
|
-
retry: Retry.Retry,
|
|
287
|
-
}));
|
|
288
|
-
/** Gets information about the current team. Required scopes — bot: `team:read`; user: `team:read` Rate limit tier: 3 Method-specific errors (the `error` slug on the SlackError): - `enterprise_not_found` — The `enterprise` was not found. - `fail_to_get_teams_for_restricted_user` — Failed to get teams for restricted user. - `missing_user` — The `user` was not found. - `org_not_found` — The `org` was not found. - `team_not_found` — The `team` was not found. - `team_not_on_enterprise` — Cannot query team by domain because team is not on an enterprise. - `user_not_found` — The `user` was not found. See https://docs.slack.dev/reference/methods/team.info */
|
|
289
|
-
export const teamInfo = /*@__PURE__*/ API.make(() => ({
|
|
290
|
-
input: TeamInfoRequest,
|
|
291
|
-
output: TeamInfoResponse,
|
|
292
|
-
errors: [SlackError, SlackRateLimited],
|
|
293
|
-
protocol: SlackProtocol,
|
|
294
|
-
retry: Retry.Retry,
|
|
295
|
-
}));
|
|
296
|
-
//# sourceMappingURL=team.js.map
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.UnionCases;
|
|
12
|
+
const __2 = S.Unknown;
|
|
13
|
+
const __3 = T.Http;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.String;
|
|
17
|
+
const __7 = S.Number;
|
|
18
|
+
const __8 = S.Struct;
|
|
19
|
+
const __9 = S.suspend;
|
|
20
|
+
const __10 = S.NullOr;
|
|
21
|
+
const __11 = S.Array;
|
|
22
|
+
const __12 = S.Boolean;
|
|
23
|
+
const __13 = S.Record;
|
|
24
|
+
|
|
25
|
+
export const accessLogs = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("AccessLogsResponse", '{input:#2,output:#6,errors:[$14,$15],protocol:$16,retry:$17,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"logins",pageSize:"limit"},strategy:$18};$2.pipe($1([[],[]]));$9(>7)@"AccessLogsRequest";$9(>8)@"%LoginsItem";$11(#3);$9(>9)@"%Paging";$9(>10)@"%";$8({before:$5(#1.pipe($4())),count:$5($6.pipe($4())),page:$5($6.pipe($4())),cursor:$5($6.pipe($4())),limit:$5($7.pipe($4())),team_id:$5($6.pipe($4()))}).pipe($3({method:"GET",uri:"/team.accessLogs",code:200}));$8({username:$6,count:$7,user_id:$6,ip:$6,region:$10($6),isp:$10($6),user_agent:$6,country:$10($6),date_first:$7,date_last:$7});$8({count:$7,total:$7,page:$7,pages:$7});$8({ok:$12,logins:#4,paging:$5(#5),response_metadata:$5(#13:0)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, __10, __11, __12, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(accessLogs, i));
|
|
26
|
+
|
|
27
|
+
export const billableInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$7(>3)@"BillableInfoRequest";$7(>4)@"BillableInfoResponse";$6({cursor:$4($3.pipe($2())),limit:$4($5.pipe($2())),user:$4($3.pipe($2())),team_id:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/team.billableInfo",code:200}));$6({ok:$8,response_metadata:$4(#9:0),billable_info:#10:0})', [__0, __3, __4, __6, __5, __7, __8, __9, __12, __d0, __d1, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(billableInfo, i));
|
|
28
|
+
|
|
29
|
+
export const billingInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7],protocol:$8,retry:$9};$3(>3)@"BillingInfoRequest";$3(>4)@"BillingInfoResponse";$2({}).pipe($1({method:"POST",uri:"/team.billing.info",code:200}));$2({ok:$4,plan:$5})', [__0, __3, __8, __9, __12, __6, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(billingInfo, i));
|
|
30
|
+
|
|
31
|
+
export const disconnectExternalTeam = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$6,$7],protocol:$8,retry:$9};$4(>3)@"DisconnectExternalTeamRequest";$4(>4)@"DisconnectExternalTeamResponse";$3({target_team:$2}).pipe($1({method:"POST",uri:"/team.externalTeams.disconnect",code:200,contentType:"form-urlencoded"}));$3({ok:$5,job_enqueued:$5})', [__0, __3, __6, __8, __9, __12, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(disconnectExternalTeam, i));
|
|
32
|
+
|
|
33
|
+
export const getProfile = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("GetProfileResponse", '{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$6(>5)@"GetProfileRequest";$8($7);$6(>6)@"%Profile";$6(>7)@"%";$5({visibility:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/team.profile.get",code:200}));$5({fields:$4(#2),sections:$4(#2)});$5({ok:$9,profile:#3})', [__0, __3, __4, __6, __5, __8, __9, __2, __11, __12, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]) : API.call(getProfile, i));
|
|
34
|
+
|
|
35
|
+
export const integrationLogs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$11,$12],protocol:$13,retry:$14};$6(>4)@"IntegrationLogsRequest";$8(#7:0);$6(>5)@"IntegrationLogsResponse";$5({app_id:$4($3.pipe($2())),change_type:$4($3.pipe($2())),count:$4($3.pipe($2())),page:$4($3.pipe($2())),service_id:$4($3.pipe($2())),team_id:$4($3.pipe($2())),user:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/team.integrationLogs",code:200}));$5({ok:$9,paging:$10,logs:#2})', [__0, __3, __4, __6, __5, __8, __9, __d1, __11, __12, __2, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(integrationLogs, i));
|
|
36
|
+
|
|
37
|
+
export const listExternalTeams = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("ListExternalTeamsResponseOrganizationsItem", '{input:#3,output:#11,errors:[$12,$13],protocol:$14,retry:$15,pagination:{mode:"cursor",inputToken:"cursor",outputToken:"response_metadata.next_cursor",items:"organizations",pageSize:"limit"},strategy:$16};$2($1);$2($1);$8(>12)@"ListExternalTeamsRequest";$8(>13)@"%ConnectedWorkspacesItem";$2(#4);$8(>14)@"%CanvasOwnershipDetailsItem";$2(#6);$8(>15)@"%Canvas";$8(>16)@"%";$2(#9);$8(>17)@"ListExternalTeamsResponse";$7({limit:$6($5.pipe($4())),cursor:$6($1.pipe($4())),sort_field:$6($1.pipe($4())),sort_direction:$6($1.pipe($4())),slack_connect_pref_filter:$6(#1.pipe($4())),workspace_filter:$6(#2.pipe($4())),connection_status_filter:$6($1.pipe($4()))}).pipe($3({method:"GET",uri:"/team.externalTeams.list",code:200}));$7({workspace_id:$1,workspace_name:$1});$7({team_id:$1,count:$5});$7({total_count:$5,ownership_details:#7});$7({team_id:$1,team_name:$1,team_domain:$1,public_channel_count:$5,private_channel_count:$5,im_channel_count:$5,mpim_channel_count:$5,connected_workspaces:#5,slack_connect_prefs:$9,connection_status:$1,last_active_timestamp:$5,is_sponsored:$10,canvas:$6(#8),lists:$6(#8)});$7({ok:$10,organizations:#10,total_count:$5,response_metadata:$6(#11:0)})', [__0, __6, __11, __3, __4, __7, __5, __8, __9, __2, __12, __d0, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry, slackPaginate]) : API.call(listExternalTeams, i));
|
|
38
|
+
|
|
39
|
+
export const listPreferences = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$7,$8],protocol:$9,retry:$10};$3(>3)@"ListPreferencesRequest";$3(>4)@"ListPreferencesResponse";$2({}).pipe($1({method:"POST",uri:"/team.preferences.list",code:200}));$2({ok:$4,display_real_names:$4,disable_file_uploads:$5,msg_edit_window_mins:$6,who_can_post_general:$5})', [__0, __3, __8, __9, __12, __6, __7, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(listPreferences, i));
|
|
40
|
+
|
|
41
|
+
export const teamInfo = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$6(>3)@"TeamInfoRequest";$6(>4)@"TeamInfoResponse";$5({domain:$4($3.pipe($2())),team:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/team.info",code:200}));$5({ok:$7})', [__0, __3, __4, __6, __5, __8, __9, __12, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(teamInfo, i));
|
|
42
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
43
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
// Shared schema data (see `op` in core/api).
|
|
47
|
+
function __d0() {
|
|
48
|
+
return ['$4(>1)@"AccessLogsResponseResponseMetadata";$3({next_cursor:$2($1)})', [__0, __6, __5, __8, __9]];
|
|
49
|
+
}
|
|
50
|
+
function __d1() {
|
|
51
|
+
return ['$3($1,$2)', [__0, __6, __2, __13]];
|
|
52
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as
|
|
3
|
-
import * as Redacted from "effect/Redacted";
|
|
2
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
3
|
import { type SlackOpError, type SlackOpContext } from "../protocol.ts";
|
|
5
4
|
export type { SlackOpError, SlackOpContext };
|
|
6
5
|
export interface RotateTokenRequest {
|
|
7
6
|
/** The `xoxe` refresh token that was issued along with the old app configuration token. */
|
|
8
7
|
refresh_token: string | Redacted.Redacted<string>;
|
|
9
8
|
}
|
|
10
|
-
export declare const RotateTokenRequest: S.Schema<RotateTokenRequest>;
|
|
11
9
|
export interface RotateTokenResponse {
|
|
12
10
|
/** Always `true` (a failed call raises a typed error instead). */
|
|
13
11
|
ok: boolean;
|
|
@@ -24,8 +22,7 @@ export interface RotateTokenResponse {
|
|
|
24
22
|
/** Issued at (iat) identifies the time at which the token was issued. */
|
|
25
23
|
iat: number;
|
|
26
24
|
}
|
|
27
|
-
export declare const RotateTokenResponse: S.Schema<RotateTokenResponse>;
|
|
28
25
|
export type RotateTokenError = SlackOpError;
|
|
29
|
-
/** Exchanges a refresh token for a new app configuration token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error`
|
|
26
|
+
/** Exchanges a refresh token for a new app configuration token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` -- Internal error - `invalid_refresh_token` -- The given refresh token is invalid. - `unknown_error` -- Temporary error for dev only restriction See https://docs.slack.dev/reference/methods/tooling.tokens.rotate */
|
|
30
27
|
export declare const rotateToken: API.OperationMethod<RotateTokenRequest, RotateTokenResponse, RotateTokenError, SlackOpContext>;
|
|
31
28
|
//# sourceMappingURL=tooling.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooling.d.ts","sourceRoot":"","sources":["../../src/services/tooling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"tooling.d.ts","sourceRoot":"","sources":["../../src/services/tooling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAIjD,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAiB,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMvF,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,2FAA2F;IAC3F,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;CACnD;AACD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,EAAE,EAAE,OAAO,CAAC;IACZ,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,aAAa,EAAE,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAClD,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,4HAA4H;IAC5H,GAAG,EAAE,MAAM,CAAC;IACZ,yEAAyE;IACzE,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,0XAA0X;AAC1X,eAAO,MAAM,WAAW,EAAE,GAAG,CAAC,eAAe,CAC3C,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CAOb,CAAC"}
|
package/lib/services/tooling.js
CHANGED
|
@@ -1,34 +1,21 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (docs.slack.dev JSON twins). Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
-
import * as
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
5
|
import { SlackError, SlackRateLimited } from "../errors.js";
|
|
6
6
|
import { SlackProtocol } from "../protocol.js";
|
|
7
7
|
import * as Retry from "../retry.js";
|
|
8
8
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
user_id: S.String,
|
|
23
|
-
exp: S.Number,
|
|
24
|
-
iat: S.Number,
|
|
25
|
-
})).annotate({ identifier: "RotateTokenResponse" });
|
|
26
|
-
/** Exchanges a refresh token for a new app configuration token. Rate limit tier: 5 Method-specific errors (the `error` slug on the SlackError): - `internal_error` — Internal error - `invalid_refresh_token` — The given refresh token is invalid. - `unknown_error` — Temporary error for dev only restriction See https://docs.slack.dev/reference/methods/tooling.tokens.rotate */
|
|
27
|
-
export const rotateToken = /*@__PURE__*/ API.make(() => ({
|
|
28
|
-
input: RotateTokenRequest,
|
|
29
|
-
output: RotateTokenResponse,
|
|
30
|
-
errors: [SlackError, SlackRateLimited],
|
|
31
|
-
protocol: SlackProtocol,
|
|
32
|
-
retry: Retry.Retry,
|
|
33
|
-
}));
|
|
34
|
-
//# sourceMappingURL=tooling.js.map
|
|
9
|
+
const __0 = __L.at;
|
|
10
|
+
const __1 = T.Http;
|
|
11
|
+
const __2 = T.SensitiveValue;
|
|
12
|
+
const __3 = S.String;
|
|
13
|
+
const __4 = S.Struct;
|
|
14
|
+
const __5 = S.suspend;
|
|
15
|
+
const __6 = S.Boolean;
|
|
16
|
+
const __7 = S.Number;
|
|
17
|
+
|
|
18
|
+
export const rotateToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"RotateTokenRequest";$5(>4)@"RotateTokenResponse";$4({refresh_token:$3.pipe($2({}))}).pipe($1({method:"POST",uri:"/tooling.tokens.rotate",code:200,contentType:"form-urlencoded"}));$4({ok:$6,token:$3,refresh_token:$3.pipe($2({})),team_id:$3,user_id:$3,exp:$7,iat:$7})', [__0, __1, __2, __3, __4, __5, __6, __7, SlackError, SlackRateLimited, SlackProtocol, Retry.Retry]] : API.call(rotateToken, i));
|
|
19
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
20
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
21
|
+
|