@superdurable/connector-zoom 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +22 -2
- package/dex-connector.json +186 -0
- package/dist/chunk-IOSXDBUC.js +379 -0
- package/dist/connection-4reP5njk.d.ts +414 -0
- package/dist/index.d.ts +328 -0
- package/dist/index.js +980 -0
- package/dist/mock.d.ts +151 -0
- package/dist/mock.js +365 -0
- package/package.json +62 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { C as CreateMeetingInput, M as Meeting, a as Connection, G as GetMeetingInput, L as ListMeetingsInput, b as MeetingPage, c as ListPastMeetingParticipantsInput, P as ParticipantPage, U as UpdateMeetingInput, d as UpdatedMeeting, e as CredentialSource, f as Config, g as Credentials, O as Operations } from './connection-4reP5njk.js';
|
|
2
|
+
export { h as ConfigSchema, i as CreateMeetingInputSchema, j as GetMeetingInputSchema, k as ListMeetingsInputSchema, l as ListPastMeetingParticipantsInputSchema, m as MeetingPageSchema, n as MeetingParticipant, o as MeetingParticipantSchema, p as MeetingSchema, q as MeetingSettings, r as MeetingSettingsInput, s as MeetingSettingsInputSchema, t as MeetingSettingsSchema, u as MeetingSummary, v as MeetingSummarySchema, w as ParticipantPageSchema, x as UpdateMeetingInputSchema, y as UpdatedMeetingSchema, z as decodeCredentials, A as decodeSharedCredentials, B as newConnection, D as newConnectionWithOperations } from './connection-4reP5njk.js';
|
|
3
|
+
import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
|
|
4
|
+
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, Failure, ReceiptDraft } from '@superdurable/connectors-sdk';
|
|
5
|
+
import { StepTarget } from '@superdurable/dex';
|
|
6
|
+
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
7
|
+
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
8
|
+
import 'zod';
|
|
9
|
+
|
|
10
|
+
/** Stable connector identity. */
|
|
11
|
+
declare const ConnectorID = "zoom";
|
|
12
|
+
/** Provider identity for named connections. */
|
|
13
|
+
declare const ProviderID = "zoom";
|
|
14
|
+
/** Branch IDs for listMeetings. */
|
|
15
|
+
declare const ListMeetingsBranch: {
|
|
16
|
+
readonly Listed: "listed";
|
|
17
|
+
readonly ProviderRejected: "providerRejected";
|
|
18
|
+
readonly InvalidResponse: "invalidResponse";
|
|
19
|
+
readonly Defect: "defect";
|
|
20
|
+
};
|
|
21
|
+
/** One page of the user's meetings was listed. */
|
|
22
|
+
declare const ListMeetingsBranchListed: "listed";
|
|
23
|
+
/** Zoom conclusively rejected the listing, including a documented daily-limit 429 or a user without meeting hosting capability. */
|
|
24
|
+
declare const ListMeetingsBranchProviderRejected: "providerRejected";
|
|
25
|
+
/** Zoom returned an invalid or oversized meeting page. */
|
|
26
|
+
declare const ListMeetingsBranchInvalidResponse: "invalidResponse";
|
|
27
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
28
|
+
declare const ListMeetingsBranchDefect: "defect";
|
|
29
|
+
/** Manifest definition for listMeetings. */
|
|
30
|
+
declare const ListMeetingsDefinition: QueryDefinition;
|
|
31
|
+
/** Manifest metadata for listMeetings. */
|
|
32
|
+
declare const ListMeetingsMetadata: {
|
|
33
|
+
readonly kind: "query";
|
|
34
|
+
readonly idempotency: "none";
|
|
35
|
+
readonly authorization: "required";
|
|
36
|
+
};
|
|
37
|
+
/** Branch IDs for getMeeting. */
|
|
38
|
+
declare const GetMeetingBranch: {
|
|
39
|
+
readonly Found: "found";
|
|
40
|
+
readonly NotFound: "notFound";
|
|
41
|
+
readonly ProviderRejected: "providerRejected";
|
|
42
|
+
readonly InvalidResponse: "invalidResponse";
|
|
43
|
+
readonly Defect: "defect";
|
|
44
|
+
};
|
|
45
|
+
/** The meeting was read. */
|
|
46
|
+
declare const GetMeetingBranchFound: "found";
|
|
47
|
+
/** The meeting does not exist or was deleted. */
|
|
48
|
+
declare const GetMeetingBranchNotFound: "notFound";
|
|
49
|
+
/** Zoom conclusively rejected the meeting read, including a documented daily-limit 429. */
|
|
50
|
+
declare const GetMeetingBranchProviderRejected: "providerRejected";
|
|
51
|
+
/** Zoom returned an invalid or oversized meeting. */
|
|
52
|
+
declare const GetMeetingBranchInvalidResponse: "invalidResponse";
|
|
53
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
54
|
+
declare const GetMeetingBranchDefect: "defect";
|
|
55
|
+
/** Manifest definition for getMeeting. */
|
|
56
|
+
declare const GetMeetingDefinition: QueryDefinition;
|
|
57
|
+
/** Manifest metadata for getMeeting. */
|
|
58
|
+
declare const GetMeetingMetadata: {
|
|
59
|
+
readonly kind: "query";
|
|
60
|
+
readonly idempotency: "none";
|
|
61
|
+
readonly authorization: "required";
|
|
62
|
+
};
|
|
63
|
+
/** Branch IDs for createMeeting. */
|
|
64
|
+
declare const CreateMeetingBranch: {
|
|
65
|
+
readonly Created: "created";
|
|
66
|
+
readonly ProviderRejected: "providerRejected";
|
|
67
|
+
readonly Uncertain: "uncertain";
|
|
68
|
+
readonly Defect: "defect";
|
|
69
|
+
};
|
|
70
|
+
/** Zoom created the meeting and returned its ID and join URL. */
|
|
71
|
+
declare const CreateMeetingBranchCreated: "created";
|
|
72
|
+
/** Zoom conclusively rejected the meeting, including a documented daily-limit 429 or a user who cannot host; nothing was created. */
|
|
73
|
+
declare const CreateMeetingBranchProviderRejected: "providerRejected";
|
|
74
|
+
/** The request was dispatched but its outcome cannot be confirmed; the meeting may exist and must not be created again automatically. */
|
|
75
|
+
declare const CreateMeetingBranchUncertain: "uncertain";
|
|
76
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
77
|
+
declare const CreateMeetingBranchDefect: "defect";
|
|
78
|
+
/** Manifest definition for createMeeting. */
|
|
79
|
+
declare const CreateMeetingDefinition: MutationDefinition;
|
|
80
|
+
/** Manifest metadata for createMeeting. */
|
|
81
|
+
declare const CreateMeetingMetadata: {
|
|
82
|
+
readonly kind: "mutation";
|
|
83
|
+
readonly idempotency: "required";
|
|
84
|
+
readonly authorization: "required";
|
|
85
|
+
};
|
|
86
|
+
/** Branch IDs for updateMeeting. */
|
|
87
|
+
declare const UpdateMeetingBranch: {
|
|
88
|
+
readonly Updated: "updated";
|
|
89
|
+
readonly NotFound: "notFound";
|
|
90
|
+
readonly ProviderRejected: "providerRejected";
|
|
91
|
+
readonly Defect: "defect";
|
|
92
|
+
};
|
|
93
|
+
/** Zoom accepted the patch. */
|
|
94
|
+
declare const UpdateMeetingBranchUpdated: "updated";
|
|
95
|
+
/** The meeting does not exist or was deleted. */
|
|
96
|
+
declare const UpdateMeetingBranchNotFound: "notFound";
|
|
97
|
+
/** Zoom conclusively rejected the patch, including a documented daily-limit 429 or an invalid field value. */
|
|
98
|
+
declare const UpdateMeetingBranchProviderRejected: "providerRejected";
|
|
99
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
100
|
+
declare const UpdateMeetingBranchDefect: "defect";
|
|
101
|
+
/** Manifest definition for updateMeeting. */
|
|
102
|
+
declare const UpdateMeetingDefinition: MutationDefinition;
|
|
103
|
+
/** Manifest metadata for updateMeeting. */
|
|
104
|
+
declare const UpdateMeetingMetadata: {
|
|
105
|
+
readonly kind: "mutation";
|
|
106
|
+
readonly idempotency: "required";
|
|
107
|
+
readonly authorization: "required";
|
|
108
|
+
};
|
|
109
|
+
/** Branch IDs for listPastMeetingParticipants. */
|
|
110
|
+
declare const ListPastMeetingParticipantsBranch: {
|
|
111
|
+
readonly Listed: "listed";
|
|
112
|
+
readonly NotFound: "notFound";
|
|
113
|
+
readonly ProviderRejected: "providerRejected";
|
|
114
|
+
readonly InvalidResponse: "invalidResponse";
|
|
115
|
+
readonly Defect: "defect";
|
|
116
|
+
};
|
|
117
|
+
/** One page of participants was listed. */
|
|
118
|
+
declare const ListPastMeetingParticipantsBranchListed: "listed";
|
|
119
|
+
/** Zoom has no ended instance of the meeting. */
|
|
120
|
+
declare const ListPastMeetingParticipantsBranchNotFound: "notFound";
|
|
121
|
+
/** Zoom conclusively rejected the listing, including a documented daily-limit 429, a free account, or a meeting older than Zoom keeps. */
|
|
122
|
+
declare const ListPastMeetingParticipantsBranchProviderRejected: "providerRejected";
|
|
123
|
+
/** Zoom returned an invalid or oversized participant page. */
|
|
124
|
+
declare const ListPastMeetingParticipantsBranchInvalidResponse: "invalidResponse";
|
|
125
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
126
|
+
declare const ListPastMeetingParticipantsBranchDefect: "defect";
|
|
127
|
+
/** Manifest definition for listPastMeetingParticipants. */
|
|
128
|
+
declare const ListPastMeetingParticipantsDefinition: QueryDefinition;
|
|
129
|
+
/** Manifest metadata for listPastMeetingParticipants. */
|
|
130
|
+
declare const ListPastMeetingParticipantsMetadata: {
|
|
131
|
+
readonly kind: "query";
|
|
132
|
+
readonly idempotency: "none";
|
|
133
|
+
readonly authorization: "required";
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** Configuration for the listMeetings connector Step. */
|
|
137
|
+
interface ListMeetingsStepConfig<StepInput, OperationInput = ListMeetingsInput, OperationOutput = MeetingPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
138
|
+
/** Named connection supplying this operation. */
|
|
139
|
+
connection: Connection<{
|
|
140
|
+
listMeetings(): Query<OperationInput, OperationOutput>;
|
|
141
|
+
}>;
|
|
142
|
+
/** Name matching the bound connection. */
|
|
143
|
+
connectionName: string;
|
|
144
|
+
/** One page of the user's meetings was listed. */
|
|
145
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
146
|
+
/** Zoom conclusively rejected the listing, including a documented daily-limit 429 or a user without meeting hosting capability. */
|
|
147
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
148
|
+
/** Zoom returned an invalid or oversized meeting page. */
|
|
149
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
150
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
151
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
152
|
+
}
|
|
153
|
+
/** Build the listMeetings Step from a named connection. */
|
|
154
|
+
declare function newListMeetingsStep<StepInput, OperationInput = ListMeetingsInput, OperationOutput = MeetingPage>(configuration: ListMeetingsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
155
|
+
/** Configuration for the getMeeting connector Step. */
|
|
156
|
+
interface GetMeetingStepConfig<StepInput, OperationInput = GetMeetingInput, OperationOutput = Meeting> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
157
|
+
/** Named connection supplying this operation. */
|
|
158
|
+
connection: Connection<{
|
|
159
|
+
getMeeting(): Query<OperationInput, OperationOutput>;
|
|
160
|
+
}>;
|
|
161
|
+
/** Name matching the bound connection. */
|
|
162
|
+
connectionName: string;
|
|
163
|
+
/** The meeting was read. */
|
|
164
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
165
|
+
/** The meeting does not exist or was deleted. */
|
|
166
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
167
|
+
/** Zoom conclusively rejected the meeting read, including a documented daily-limit 429. */
|
|
168
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
169
|
+
/** Zoom returned an invalid or oversized meeting. */
|
|
170
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
171
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
172
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
173
|
+
}
|
|
174
|
+
/** Build the getMeeting Step from a named connection. */
|
|
175
|
+
declare function newGetMeetingStep<StepInput, OperationInput = GetMeetingInput, OperationOutput = Meeting>(configuration: GetMeetingStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
176
|
+
/** Configuration for the createMeeting connector Step. */
|
|
177
|
+
interface CreateMeetingStepConfig<StepInput, OperationInput = CreateMeetingInput, OperationOutput = Meeting> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
178
|
+
/** Named connection supplying this operation. */
|
|
179
|
+
connection: Connection<{
|
|
180
|
+
createMeeting(): Mutation<OperationInput, OperationOutput>;
|
|
181
|
+
}>;
|
|
182
|
+
/** Name matching the bound connection. */
|
|
183
|
+
connectionName: string;
|
|
184
|
+
/** Zoom created the meeting and returned its ID and join URL. */
|
|
185
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
186
|
+
/** Zoom conclusively rejected the meeting, including a documented daily-limit 429 or a user who cannot host; nothing was created. */
|
|
187
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
188
|
+
/** The request was dispatched but its outcome cannot be confirmed; the meeting may exist and must not be created again automatically. */
|
|
189
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
190
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
191
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
192
|
+
}
|
|
193
|
+
/** Build the createMeeting Step from a named connection. */
|
|
194
|
+
declare function newCreateMeetingStep<StepInput, OperationInput = CreateMeetingInput, OperationOutput = Meeting>(configuration: CreateMeetingStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
195
|
+
/** Configuration for the updateMeeting connector Step. */
|
|
196
|
+
interface UpdateMeetingStepConfig<StepInput, OperationInput = UpdateMeetingInput, OperationOutput = UpdatedMeeting> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
197
|
+
/** Named connection supplying this operation. */
|
|
198
|
+
connection: Connection<{
|
|
199
|
+
updateMeeting(): Mutation<OperationInput, OperationOutput>;
|
|
200
|
+
}>;
|
|
201
|
+
/** Name matching the bound connection. */
|
|
202
|
+
connectionName: string;
|
|
203
|
+
/** Zoom accepted the patch. */
|
|
204
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
205
|
+
/** The meeting does not exist or was deleted. */
|
|
206
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
207
|
+
/** Zoom conclusively rejected the patch, including a documented daily-limit 429 or an invalid field value. */
|
|
208
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
209
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
210
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
211
|
+
}
|
|
212
|
+
/** Build the updateMeeting Step from a named connection. */
|
|
213
|
+
declare function newUpdateMeetingStep<StepInput, OperationInput = UpdateMeetingInput, OperationOutput = UpdatedMeeting>(configuration: UpdateMeetingStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
214
|
+
/** Configuration for the listPastMeetingParticipants connector Step. */
|
|
215
|
+
interface ListPastMeetingParticipantsStepConfig<StepInput, OperationInput = ListPastMeetingParticipantsInput, OperationOutput = ParticipantPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
216
|
+
/** Named connection supplying this operation. */
|
|
217
|
+
connection: Connection<{
|
|
218
|
+
listPastMeetingParticipants(): Query<OperationInput, OperationOutput>;
|
|
219
|
+
}>;
|
|
220
|
+
/** Name matching the bound connection. */
|
|
221
|
+
connectionName: string;
|
|
222
|
+
/** One page of participants was listed. */
|
|
223
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
224
|
+
/** Zoom has no ended instance of the meeting. */
|
|
225
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
226
|
+
/** Zoom conclusively rejected the listing, including a documented daily-limit 429, a free account, or a meeting older than Zoom keeps. */
|
|
227
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
228
|
+
/** Zoom returned an invalid or oversized participant page. */
|
|
229
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
230
|
+
/** Local input, connection configuration, or connector definition is invalid. */
|
|
231
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
232
|
+
}
|
|
233
|
+
/** Build the listPastMeetingParticipants Step from a named connection. */
|
|
234
|
+
declare function newListPastMeetingParticipantsStep<StepInput, OperationInput = ListPastMeetingParticipantsInput, OperationOutput = ParticipantPage>(configuration: ListPastMeetingParticipantsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
235
|
+
|
|
236
|
+
/** List one page of the authorized user's meetings. */
|
|
237
|
+
declare class ListMeetingsOperation implements Query<ListMeetingsInput, MeetingPage> {
|
|
238
|
+
private readonly client;
|
|
239
|
+
/** Bind one Zoom client. */ constructor(client: ZoomClient);
|
|
240
|
+
/** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
241
|
+
/** Invoke one bounded meeting-list request. */
|
|
242
|
+
invoke(call: Call, input: ListMeetingsInput): Promise<QueryAttempt<MeetingPage>>;
|
|
243
|
+
}
|
|
244
|
+
/** Read one meeting by numeric ID. */
|
|
245
|
+
declare class GetMeetingOperation implements Query<GetMeetingInput, Meeting> {
|
|
246
|
+
private readonly client;
|
|
247
|
+
/** Bind one Zoom client. */ constructor(client: ZoomClient);
|
|
248
|
+
/** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
249
|
+
/** Invoke one bounded meeting read. */
|
|
250
|
+
invoke(call: Call, input: GetMeetingInput): Promise<QueryAttempt<Meeting>>;
|
|
251
|
+
}
|
|
252
|
+
/** Set absolute values on one meeting. */
|
|
253
|
+
declare class UpdateMeetingOperation implements Mutation<UpdateMeetingInput, UpdatedMeeting> {
|
|
254
|
+
private readonly client;
|
|
255
|
+
/** Bind one Zoom client. */ constructor(client: ZoomClient);
|
|
256
|
+
/** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
257
|
+
/** Derive the receipt key from Dex's Call ID. */ idempotencyKey(callId: string): string;
|
|
258
|
+
/** Invoke one repeat-safe meeting patch. */
|
|
259
|
+
invoke(call: Call, input: UpdateMeetingInput): Promise<MutationAttempt<UpdatedMeeting>>;
|
|
260
|
+
}
|
|
261
|
+
/** List one page of joins from the latest ended meeting instance. */
|
|
262
|
+
declare class ListPastMeetingParticipantsOperation implements Query<ListPastMeetingParticipantsInput, ParticipantPage> {
|
|
263
|
+
private readonly client;
|
|
264
|
+
/** Bind one Zoom client. */ constructor(client: ZoomClient);
|
|
265
|
+
/** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
266
|
+
/** Invoke one bounded participant-list request. */
|
|
267
|
+
invoke(call: Call, input: ListPastMeetingParticipantsInput): Promise<QueryAttempt<ParticipantPage>>;
|
|
268
|
+
}
|
|
269
|
+
/** Create one meeting behind Dex's durable single-dispatch fence. */
|
|
270
|
+
declare class CreateMeetingOperation implements Mutation<CreateMeetingInput, Meeting> {
|
|
271
|
+
private readonly client;
|
|
272
|
+
/** Bind one Zoom client. */ constructor(client: ZoomClient);
|
|
273
|
+
/** Return the manifest definition. */ definition(): _superdurable_connectors_sdk.QueryDefinition;
|
|
274
|
+
/** Derive the receipt key from Dex's Call ID. */ idempotencyKey(callId: string): string;
|
|
275
|
+
/** Invoke one fenced create attempt. */
|
|
276
|
+
invoke(call: Call, input: CreateMeetingInput): Promise<MutationAttempt<Meeting>>;
|
|
277
|
+
private readBack;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** Replace the provider transport or clock for deterministic tests. */
|
|
281
|
+
interface ZoomClientOptions {
|
|
282
|
+
/** Sends one provider request. */ send?: (request: ProviderRequest) => Promise<ProviderResponse>;
|
|
283
|
+
/** Supplies receipt and Retry-After time. */ now?: () => Date;
|
|
284
|
+
}
|
|
285
|
+
/** One provider exchange, retaining whether a failed write could have reached Zoom. */
|
|
286
|
+
type ZoomExchange = {
|
|
287
|
+
response: ProviderResponse;
|
|
288
|
+
isTooLarge: boolean;
|
|
289
|
+
reflectsCredential: boolean;
|
|
290
|
+
} | {
|
|
291
|
+
error: 'beforeSend' | 'afterSend' | 'notBuilt';
|
|
292
|
+
};
|
|
293
|
+
/** Zoom Meetings client with generated OAuth refresh policy. */
|
|
294
|
+
declare class ZoomClient {
|
|
295
|
+
readonly credentials: CredentialSource;
|
|
296
|
+
readonly endpoint: string;
|
|
297
|
+
readonly maxResponseBytes: number;
|
|
298
|
+
private readonly send;
|
|
299
|
+
private readonly now;
|
|
300
|
+
private readonly refreshDriver;
|
|
301
|
+
/** Validate connection settings before a Step resolves credentials. */
|
|
302
|
+
constructor(config: Config, credentials: CredentialSource, options?: ZoomClientOptions);
|
|
303
|
+
/** Bind the meeting list query. */ listMeetings(): ListMeetingsOperation;
|
|
304
|
+
/** Bind the meeting detail query. */ getMeeting(): GetMeetingOperation;
|
|
305
|
+
/** Bind the fenced meeting create mutation. */ createMeeting(): CreateMeetingOperation;
|
|
306
|
+
/** Bind the meeting patch mutation. */ updateMeeting(): UpdateMeetingOperation;
|
|
307
|
+
/** Bind the participant list query. */ listPastMeetingParticipants(): ListPastMeetingParticipantsOperation;
|
|
308
|
+
/** Resolve generated renewable credentials and preserve terminal versus retryable failures. */
|
|
309
|
+
resolveCredentials(call: Call, operation: string): Promise<{
|
|
310
|
+
credentials: Credentials;
|
|
311
|
+
} | {
|
|
312
|
+
failure: Failure;
|
|
313
|
+
retry: boolean;
|
|
314
|
+
}>;
|
|
315
|
+
/** Force one generated refresh after Zoom rejects a fenced create credential. */
|
|
316
|
+
refreshAfterRejection(call: Call, previousAccessToken: string): Promise<'replaced' | 'retryable' | 'reauthorize' | 'unsupported'>;
|
|
317
|
+
/** Send one bounded request and refresh once after a rejected credential when allowed. */
|
|
318
|
+
exchange(call: Call, credentials: Credentials, method: string, path: string, query?: URLSearchParams, payload?: unknown, isFencedWrite?: boolean, signal?: AbortSignal): Promise<ZoomExchange>;
|
|
319
|
+
/** Build a secret-free receipt containing only the provider meeting ID and numeric error code. */
|
|
320
|
+
receipt(call: Call, objectId?: string, errorCode?: string): ReceiptDraft;
|
|
321
|
+
/** Parse Retry-After with the SDK's bounded rules. */
|
|
322
|
+
retryAfter(headers: ProviderResponse['headers']): number;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** Open a named Zoom project connection with generated renewable credential decoders. */
|
|
326
|
+
declare function newProjectConnection(project: LoadedProject, connectionName: string, options?: ZoomClientOptions): Connection<Operations>;
|
|
327
|
+
|
|
328
|
+
export { Config, Connection, ConnectorID, CreateMeetingBranch, CreateMeetingBranchCreated, CreateMeetingBranchDefect, CreateMeetingBranchProviderRejected, CreateMeetingBranchUncertain, CreateMeetingDefinition, CreateMeetingInput, CreateMeetingMetadata, CreateMeetingOperation, type CreateMeetingStepConfig, CredentialSource, Credentials, GetMeetingBranch, GetMeetingBranchDefect, GetMeetingBranchFound, GetMeetingBranchInvalidResponse, GetMeetingBranchNotFound, GetMeetingBranchProviderRejected, GetMeetingDefinition, GetMeetingInput, GetMeetingMetadata, GetMeetingOperation, type GetMeetingStepConfig, ListMeetingsBranch, ListMeetingsBranchDefect, ListMeetingsBranchInvalidResponse, ListMeetingsBranchListed, ListMeetingsBranchProviderRejected, ListMeetingsDefinition, ListMeetingsInput, ListMeetingsMetadata, ListMeetingsOperation, type ListMeetingsStepConfig, ListPastMeetingParticipantsBranch, ListPastMeetingParticipantsBranchDefect, ListPastMeetingParticipantsBranchInvalidResponse, ListPastMeetingParticipantsBranchListed, ListPastMeetingParticipantsBranchNotFound, ListPastMeetingParticipantsBranchProviderRejected, ListPastMeetingParticipantsDefinition, ListPastMeetingParticipantsInput, ListPastMeetingParticipantsMetadata, ListPastMeetingParticipantsOperation, type ListPastMeetingParticipantsStepConfig, Meeting, MeetingPage, ParticipantPage, ProviderID, UpdateMeetingBranch, UpdateMeetingBranchDefect, UpdateMeetingBranchNotFound, UpdateMeetingBranchProviderRejected, UpdateMeetingBranchUpdated, UpdateMeetingDefinition, UpdateMeetingInput, UpdateMeetingMetadata, UpdateMeetingOperation, type UpdateMeetingStepConfig, UpdatedMeeting, ZoomClient, type ZoomClientOptions, newCreateMeetingStep, newGetMeetingStep, newListMeetingsStep, newListPastMeetingParticipantsStep, newProjectConnection, newUpdateMeetingStep };
|