@macro-inc/sdk 0.0.1 → 0.2.2
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/README.md +628 -21
- package/dist/{chunk-5HAKQN23.js → chunk-7LVVPVNT.js} +70 -57
- package/dist/{chunk-JXIQT5TH.js → chunk-7YJ6Y7HJ.js} +234 -16
- package/dist/chunk-LMJW65ML.js +836 -0
- package/dist/{chunk-SGAHIERJ.js → chunk-OGE7WXJE.js} +16 -0
- package/dist/chunk-PRUFPW3B.js +943 -0
- package/dist/{chunk-CTKR64MY.js → chunk-QVBNNMQS.js} +242 -367
- package/dist/{chunk-QNUS5BC5.js → chunk-SUINKDXF.js} +30 -84
- package/dist/{chunk-77EI4LSQ.js → chunk-ZQXOHNDB.js} +1518 -386
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +174 -4
- package/dist/generated/agent-harness/types.gen.d.ts +2511 -189
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +106 -8
- package/dist/generated/auth/types.gen.d.ts +1473 -116
- package/dist/generated/calendar/client/client.gen.d.ts +2 -0
- package/dist/generated/calendar/client/index.d.ts +10 -0
- package/dist/generated/calendar/client/types.gen.d.ts +120 -0
- package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
- package/dist/generated/calendar/client.gen.d.ts +12 -0
- package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
- package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/calendar/core/params.gen.d.ts +43 -0
- package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/calendar/core/types.gen.d.ts +83 -0
- package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
- package/dist/generated/calendar/index.d.ts +2 -0
- package/dist/generated/calendar/index.js +6 -0
- package/dist/generated/calendar/sdk.gen.d.ts +95 -0
- package/dist/generated/calendar/types.gen.d.ts +1091 -0
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +6 -1
- package/dist/generated/cognition/types.gen.d.ts +304 -36
- package/dist/generated/connection/types.gen.d.ts +1 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +32 -27
- package/dist/generated/email/types.gen.d.ts +586 -409
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/types.gen.d.ts +384 -19
- package/dist/generated/properties/types.gen.d.ts +8 -5
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +3 -842
- package/dist/generated/scheduled-action/sdk.gen.d.ts +3 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +277 -41
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +262 -43
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +678 -107
- package/dist/generated/storage/types.gen.d.ts +14827 -5995
- package/dist/generated/unfurl/index.d.ts +1 -1
- package/dist/generated/unfurl/index.js +3 -832
- package/dist/generated/unfurl/types.gen.d.ts +20 -0
- package/dist/src/config.d.ts +33 -13
- package/dist/src/entities/agent-sessions/agent-session.d.ts +150 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +43 -0
- package/dist/src/entities/agent-sessions/conversation.d.ts +54 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +23 -5
- package/dist/src/entities/agent-sessions/queued-action.d.ts +46 -0
- package/dist/src/entities/agent-sessions/review.d.ts +107 -0
- package/dist/src/entities/agent-sessions/tool-approval.d.ts +21 -0
- package/dist/src/entities/agents/agent.d.ts +47 -0
- package/dist/src/entities/agents/namespace.d.ts +13 -0
- package/dist/src/entities/ai/namespace.d.ts +24 -0
- package/dist/src/entities/api-keys/api-key.d.ts +17 -0
- package/dist/src/entities/api-keys/namespace.d.ts +18 -0
- package/dist/src/entities/calendar/calendar.d.ts +35 -0
- package/dist/src/entities/calendar/event.d.ts +123 -0
- package/dist/src/entities/calendar/event.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +111 -0
- package/dist/src/entities/calendar/replacement.d.ts +15 -0
- package/dist/src/entities/calls/call-record.d.ts +62 -6
- package/dist/src/entities/calls/message.d.ts +33 -0
- package/dist/src/entities/channels/activity.d.ts +24 -0
- package/dist/src/entities/channels/channel.d.ts +44 -3
- package/dist/src/entities/channels/labels.d.ts +39 -0
- package/dist/src/entities/channels/message.d.ts +9 -17
- package/dist/src/entities/channels/namespace.d.ts +6 -0
- package/dist/src/entities/channels/picture.d.ts +11 -0
- package/dist/src/entities/channels/post.d.ts +1 -1
- package/dist/src/entities/channels/thread.d.ts +5 -0
- package/dist/src/entities/chats/chat.d.ts +11 -1
- package/dist/src/entities/chats/generation.d.ts +46 -0
- package/dist/src/entities/crm/comment.d.ts +55 -34
- package/dist/src/entities/crm/company.d.ts +42 -10
- package/dist/src/entities/crm/contact.d.ts +42 -10
- package/dist/src/entities/crm/namespace.d.ts +18 -1
- package/dist/src/entities/crm/pipeline.d.ts +122 -0
- package/dist/src/entities/crm/pipelines.d.ts +14 -0
- package/dist/src/entities/databases/column.d.ts +75 -0
- package/dist/src/entities/databases/database.d.ts +272 -0
- package/dist/src/entities/databases/namespace.d.ts +21 -0
- package/dist/src/entities/databases/query.d.ts +86 -0
- package/dist/src/entities/databases/row.d.ts +27 -0
- package/dist/src/entities/databases/table.d.ts +61 -0
- package/dist/src/entities/databases/view.d.ts +40 -0
- package/dist/src/entities/databases/webhook.d.ts +32 -0
- package/dist/src/entities/documents/anchor.d.ts +29 -0
- package/dist/src/entities/documents/comment.d.ts +25 -22
- package/dist/src/entities/documents/document.d.ts +60 -12
- package/dist/src/entities/documents/namespace.d.ts +30 -0
- package/dist/src/entities/documents/version.d.ts +22 -0
- package/dist/src/entities/email/draft.d.ts +79 -0
- package/dist/src/entities/email/filter.d.ts +34 -0
- package/dist/src/entities/email/link.d.ts +6 -4
- package/dist/src/entities/email/message.d.ts +12 -1
- package/dist/src/entities/email/namespace.d.ts +34 -1
- package/dist/src/entities/email/thread.d.ts +23 -1
- package/dist/src/entities/entity-mentions/mention.d.ts +16 -0
- package/dist/src/entities/entity-mentions/namespace.d.ts +12 -0
- package/dist/src/entities/entity.d.ts +7 -0
- package/dist/src/entities/favorites/namespace.d.ts +14 -2
- package/dist/src/entities/foreign/foreign-entity.d.ts +2 -0
- package/dist/src/entities/foreign/namespace.d.ts +40 -0
- package/dist/src/entities/forms/form.d.ts +227 -0
- package/dist/src/entities/forms/namespace.d.ts +18 -0
- package/dist/src/entities/forms/question.d.ts +37 -0
- package/dist/src/entities/forms/response.d.ts +32 -0
- package/dist/src/entities/forms/section.d.ts +19 -0
- package/dist/src/entities/github-pull-requests/namespace.d.ts +12 -0
- package/dist/src/entities/github-pull-requests/pull-request.d.ts +52 -0
- package/dist/src/entities/harnesses/harness.d.ts +19 -0
- package/dist/src/entities/harnesses/namespace.d.ts +33 -0
- package/dist/src/entities/harnesses/pairing.d.ts +39 -0
- package/dist/src/entities/initiatives/initiative.d.ts +50 -0
- package/dist/src/entities/initiatives/namespace.d.ts +13 -0
- package/dist/src/entities/meetings/meeting.d.ts +38 -0
- package/dist/src/entities/meetings/namespace.d.ts +18 -0
- package/dist/src/entities/messages/thread.d.ts +101 -0
- package/dist/src/entities/notifications/notification.d.ts +6 -3
- package/dist/src/entities/notifications/notification.test.d.ts +1 -0
- package/dist/src/entities/projects/project.d.ts +7 -0
- package/dist/src/entities/reference.d.ts +82 -0
- package/dist/src/entities/routines/namespace.d.ts +15 -0
- package/dist/src/entities/routines/routine.d.ts +115 -0
- package/dist/src/entities/sharing/access.d.ts +65 -0
- package/dist/src/entities/sharing/permissions.d.ts +13 -0
- package/dist/src/entities/tasks/namespace.d.ts +4 -0
- package/dist/src/entities/tasks/task.d.ts +6 -0
- package/dist/src/entities/unfurls/namespace.d.ts +10 -0
- package/dist/src/entities/webhooks/webhook.d.ts +3 -1
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +83 -0
- package/dist/src/entities/workspace/query.d.ts +12 -0
- package/dist/src/entities/workspace/types.d.ts +96 -0
- package/dist/src/events/hydrate/agentSession.d.ts +192 -0
- package/dist/src/events/hydrate/channel.d.ts +2 -39
- package/dist/src/events/hydrate/message.d.ts +70 -0
- package/dist/src/events/receiver.d.ts +57 -19
- package/dist/src/events/types.d.ts +3 -1
- package/dist/src/macro.d.ts +80 -3
- package/dist/src/macro.js +8832 -2784
- package/dist/src/utils/activity.d.ts +11 -0
- package/dist/src/utils/activity.test.d.ts +1 -0
- package/dist/src/utils/client.d.ts +10 -1
- package/dist/src/utils/concurrency.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/pagination.d.ts +9 -4
- package/package.json +11 -3
|
@@ -2,10 +2,95 @@ export type ClientOptions = {
|
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
4
|
export type AbGroup = 'A' | 'B';
|
|
5
|
+
/**
|
|
6
|
+
* Error response body.
|
|
7
|
+
*/
|
|
8
|
+
export type AiBillingErrorBody = {
|
|
9
|
+
/**
|
|
10
|
+
* Human-readable error description.
|
|
11
|
+
*/
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
5
14
|
export type AppleLoginRequest = {
|
|
6
15
|
code: string;
|
|
7
16
|
id_token: string;
|
|
8
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* The automatic reload thresholds a payer starts from.
|
|
20
|
+
*/
|
|
21
|
+
export type AutoReloadDefaults = {
|
|
22
|
+
/**
|
|
23
|
+
* Balance below which a reload fires, cents.
|
|
24
|
+
*/
|
|
25
|
+
minimum_balance_cents: number;
|
|
26
|
+
/**
|
|
27
|
+
* Balance a reload tops up to, cents.
|
|
28
|
+
*/
|
|
29
|
+
target_balance_cents: number;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Calendar-month commitments that consume the payer's automatic reload cap.
|
|
33
|
+
*/
|
|
34
|
+
export type AutoReloadMonthlyBudget = {
|
|
35
|
+
/**
|
|
36
|
+
* Reloads paid, pending, or failed with an invoice that can still collect.
|
|
37
|
+
* Customer cents; manual credit purchases do not count.
|
|
38
|
+
*/
|
|
39
|
+
committed_cents: number;
|
|
40
|
+
/**
|
|
41
|
+
* Remaining cap cannot fund the minimum automatic reload charge.
|
|
42
|
+
*/
|
|
43
|
+
limit_reached: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Start of the next UTC calendar month, independently of subscription renewal.
|
|
46
|
+
*/
|
|
47
|
+
resets_at: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The payer's automatic reload settings, as shown in Billing settings.
|
|
51
|
+
*/
|
|
52
|
+
export type AutoReloadSnapshot = {
|
|
53
|
+
/**
|
|
54
|
+
* Whether reloads will fire: the payer opted in and reloads are not suspended.
|
|
55
|
+
*/
|
|
56
|
+
active: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Reload once the effective balance drops below this, in customer cents.
|
|
59
|
+
*/
|
|
60
|
+
minimum_balance_cents: number;
|
|
61
|
+
monthly_budget?: null | AutoReloadMonthlyBudget;
|
|
62
|
+
/**
|
|
63
|
+
* Most reloaded per UTC calendar month, in customer cents. `null` when
|
|
64
|
+
* there is no limit.
|
|
65
|
+
*/
|
|
66
|
+
monthly_spend_limit_cents?: number | null;
|
|
67
|
+
/**
|
|
68
|
+
* Whether reloads are paused after a failed reload charge.
|
|
69
|
+
*/
|
|
70
|
+
suspended: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Reload the balance back up to this, in customer cents.
|
|
73
|
+
*/
|
|
74
|
+
target_balance_cents: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Request body for switching plans
|
|
78
|
+
*/
|
|
79
|
+
export type ChangePlanRequest = {
|
|
80
|
+
/**
|
|
81
|
+
* The plan to move the active subscription to
|
|
82
|
+
*/
|
|
83
|
+
plan: SeatPlan;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Response for a plan change
|
|
87
|
+
*/
|
|
88
|
+
export type ChangePlanResponse = {
|
|
89
|
+
/**
|
|
90
|
+
* The plan the subscription is now on
|
|
91
|
+
*/
|
|
92
|
+
plan: SeatPlan;
|
|
93
|
+
};
|
|
9
94
|
/**
|
|
10
95
|
* Tracking metadata for conversion attribution
|
|
11
96
|
*/
|
|
@@ -23,6 +108,121 @@ export type CheckoutSessionMetadata = {
|
|
|
23
108
|
*/
|
|
24
109
|
gaClientId?: string | null;
|
|
25
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Hosted checkout with the billing terms the server actually granted.
|
|
113
|
+
*/
|
|
114
|
+
export type CheckoutSessionV2Response = {
|
|
115
|
+
/**
|
|
116
|
+
* Trial duration, absent for an immediately paid checkout.
|
|
117
|
+
*/
|
|
118
|
+
trialDays?: number | null;
|
|
119
|
+
/**
|
|
120
|
+
* The opaque URL returned by Stripe.
|
|
121
|
+
*/
|
|
122
|
+
url: string;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Explicit remote environment for future Codex sessions.
|
|
126
|
+
*/
|
|
127
|
+
export type CodexConfigRequest = {
|
|
128
|
+
/**
|
|
129
|
+
* An environment currently visible to this account.
|
|
130
|
+
*/
|
|
131
|
+
environmentId: string;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Safe connection metadata; no secret or masked token is returned.
|
|
135
|
+
*/
|
|
136
|
+
export type CodexConnectionStatus = {
|
|
137
|
+
/**
|
|
138
|
+
* Connected provider account identifier.
|
|
139
|
+
*/
|
|
140
|
+
accountId?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the user has completed provider authorization.
|
|
143
|
+
*/
|
|
144
|
+
connected: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Reserved until provider-verified email metadata is available.
|
|
147
|
+
*/
|
|
148
|
+
email?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Explicitly selected remote environment.
|
|
151
|
+
*/
|
|
152
|
+
environmentId?: string | null;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* A cloud environment visible to the connected provider account.
|
|
156
|
+
*/
|
|
157
|
+
export type CodexEnvironment = {
|
|
158
|
+
/**
|
|
159
|
+
* Provider environment identity.
|
|
160
|
+
*/
|
|
161
|
+
id: string;
|
|
162
|
+
/**
|
|
163
|
+
* Human-readable provider label.
|
|
164
|
+
*/
|
|
165
|
+
label?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Ordered safe repository identities from Codex.
|
|
168
|
+
*/
|
|
169
|
+
repositories: Array<CodexEnvironmentRepository>;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Safe repository metadata available to the connected Codex account.
|
|
173
|
+
*/
|
|
174
|
+
export type CodexEnvironmentRepository = {
|
|
175
|
+
/**
|
|
176
|
+
* Credential-free HTTPS clone URL.
|
|
177
|
+
*/
|
|
178
|
+
cloneUrl: string;
|
|
179
|
+
/**
|
|
180
|
+
* Provider default branch.
|
|
181
|
+
*/
|
|
182
|
+
defaultBranch: string;
|
|
183
|
+
/**
|
|
184
|
+
* Owner/repository identity.
|
|
185
|
+
*/
|
|
186
|
+
fullName: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Outcome of polling one attempt.
|
|
190
|
+
*/
|
|
191
|
+
export type CodexLoginPoll = {
|
|
192
|
+
/**
|
|
193
|
+
* Current attempt state.
|
|
194
|
+
*/
|
|
195
|
+
status: CodexLoginState;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Expiring browser authorization instructions.
|
|
199
|
+
*/
|
|
200
|
+
export type CodexLoginStart = {
|
|
201
|
+
/**
|
|
202
|
+
* Owner-bound attempt UUID.
|
|
203
|
+
*/
|
|
204
|
+
attemptId: string;
|
|
205
|
+
/**
|
|
206
|
+
* UTC attempt deadline.
|
|
207
|
+
*/
|
|
208
|
+
expiresAt: string;
|
|
209
|
+
/**
|
|
210
|
+
* Minimum browser polling interval.
|
|
211
|
+
*/
|
|
212
|
+
pollIntervalSeconds: number;
|
|
213
|
+
/**
|
|
214
|
+
* Short expiring user code, not an API credential.
|
|
215
|
+
*/
|
|
216
|
+
userCode: string;
|
|
217
|
+
/**
|
|
218
|
+
* Official provider verification URL.
|
|
219
|
+
*/
|
|
220
|
+
verificationUrl: string;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Device authorization state visible to its initiating user.
|
|
224
|
+
*/
|
|
225
|
+
export type CodexLoginState = 'pending' | 'connected' | 'expired' | 'failed';
|
|
26
226
|
export type CreateAccountMergeRequest = {
|
|
27
227
|
/**
|
|
28
228
|
* The email address to generate the merge link for.
|
|
@@ -45,11 +245,33 @@ export type CreateCheckoutSessionV2Request = {
|
|
|
45
245
|
* Tracking metadata for conversion attribution
|
|
46
246
|
*/
|
|
47
247
|
metadata?: CheckoutSessionMetadata;
|
|
248
|
+
/**
|
|
249
|
+
* Request the automatic, first-subscription 30-day Premium trial.
|
|
250
|
+
*/
|
|
251
|
+
onboardingTrial?: boolean;
|
|
252
|
+
plan?: null | SeatPlan;
|
|
48
253
|
/**
|
|
49
254
|
* The URL to redirect to on successful checkout
|
|
50
255
|
*/
|
|
51
256
|
successUrl: string;
|
|
52
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* Request body to create a link.
|
|
260
|
+
*/
|
|
261
|
+
export type CreateGtmInviteLinkRequest = {
|
|
262
|
+
/**
|
|
263
|
+
* The recipient's first name, shown on the welcome page.
|
|
264
|
+
*/
|
|
265
|
+
firstName: string;
|
|
266
|
+
/**
|
|
267
|
+
* Free-form internal note for the dashboard.
|
|
268
|
+
*/
|
|
269
|
+
note?: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* The recipient's email, when the sender knows it.
|
|
272
|
+
*/
|
|
273
|
+
recipientEmail?: string | null;
|
|
274
|
+
};
|
|
53
275
|
export type CreateInProgressLinkResponse = {
|
|
54
276
|
/**
|
|
55
277
|
* The link id
|
|
@@ -75,24 +297,31 @@ export type CreateTeamRequest = {
|
|
|
75
297
|
name: string;
|
|
76
298
|
};
|
|
77
299
|
/**
|
|
78
|
-
*
|
|
79
|
-
* NOTE: Never derive debug here as we don't want to accidentally log the password
|
|
300
|
+
* Request body for [`create_credit_checkout_handler`].
|
|
80
301
|
*/
|
|
81
|
-
export type
|
|
302
|
+
export type CreditCheckoutRequestBody = {
|
|
82
303
|
/**
|
|
83
|
-
*
|
|
84
|
-
* This will be the user's root "profile".
|
|
304
|
+
* Pack size, cents; one of the catalog's `credit_packs_cents`.
|
|
85
305
|
*/
|
|
86
|
-
|
|
306
|
+
amountCents: number;
|
|
87
307
|
/**
|
|
88
|
-
*
|
|
89
|
-
* TODO: configure password policy and validate password before attempting to create user
|
|
308
|
+
* Where Stripe returns the user on cancel. Same rules as `success_url`.
|
|
90
309
|
*/
|
|
91
|
-
|
|
310
|
+
cancelUrl: string;
|
|
311
|
+
/**
|
|
312
|
+
* Where Stripe returns the user after paying. Must be an `https` URL
|
|
313
|
+
* on the origin the request came from.
|
|
314
|
+
*/
|
|
315
|
+
successUrl: string;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Response for [`create_credit_checkout_handler`].
|
|
319
|
+
*/
|
|
320
|
+
export type CreditCheckoutResponse = {
|
|
92
321
|
/**
|
|
93
|
-
* The
|
|
322
|
+
* The hosted Checkout URL to redirect to.
|
|
94
323
|
*/
|
|
95
|
-
|
|
324
|
+
url: string;
|
|
96
325
|
};
|
|
97
326
|
/**
|
|
98
327
|
* What settings needs to render the Cursor connection.
|
|
@@ -124,15 +353,21 @@ export type CursorApiKeyStatus = {
|
|
|
124
353
|
/**
|
|
125
354
|
* One model the settings dropdown can offer.
|
|
126
355
|
*
|
|
127
|
-
*
|
|
128
|
-
* variants each carries. The chosen id's parameters are resolved to
|
|
129
|
-
* default variant at session start.
|
|
356
|
+
* Id, name and family: the dropdown lists models, not the hundreds of
|
|
357
|
+
* parameter variants each carries. The chosen id's parameters are resolved to
|
|
358
|
+
* Cursor's default variant at session start. The family is the same heading
|
|
359
|
+
* the Cursor ACP agent groups its session model select under, so the settings
|
|
360
|
+
* picker and the in-session picker read the same way.
|
|
130
361
|
*/
|
|
131
362
|
export type CursorModelOption = {
|
|
132
363
|
/**
|
|
133
364
|
* The human-readable name, e.g. `Cursor Grok 4.6`.
|
|
134
365
|
*/
|
|
135
366
|
displayName: string;
|
|
367
|
+
/**
|
|
368
|
+
* The family heading to list this model under, e.g. `Cursor Grok`.
|
|
369
|
+
*/
|
|
370
|
+
group: string;
|
|
136
371
|
/**
|
|
137
372
|
* The id to store and send, e.g. `grok-4.6`.
|
|
138
373
|
*/
|
|
@@ -147,6 +382,17 @@ export type CursorModelsResponse = {
|
|
|
147
382
|
*/
|
|
148
383
|
models: Array<CursorModelOption>;
|
|
149
384
|
};
|
|
385
|
+
/**
|
|
386
|
+
* Why a request was refused.
|
|
387
|
+
*/
|
|
388
|
+
export type DenyReason = 'allowance_exhausted' | 'free_allowance_exhausted' | 'overage_limit_reached' | 'overage_payment_failed';
|
|
389
|
+
/**
|
|
390
|
+
* Actual deployment availability for the provider selector.
|
|
391
|
+
*/
|
|
392
|
+
export type EmailConnectionProviders = {
|
|
393
|
+
gmail: boolean;
|
|
394
|
+
outlook: boolean;
|
|
395
|
+
};
|
|
150
396
|
/**
|
|
151
397
|
* Empty response is required due to custom fetch forcing `response.json()`
|
|
152
398
|
*/
|
|
@@ -179,6 +425,10 @@ export type EnrichedGithubPullRequest = {
|
|
|
179
425
|
* The number of added lines reported by GitHub, when enrichment succeeds.
|
|
180
426
|
*/
|
|
181
427
|
additions?: number | null;
|
|
428
|
+
/**
|
|
429
|
+
* The users assigned to the pull request, when known.
|
|
430
|
+
*/
|
|
431
|
+
assignees?: Array<GithubPullRequestUser> | null;
|
|
182
432
|
/**
|
|
183
433
|
* The stable numeric GitHub user id for the pull request author, when available.
|
|
184
434
|
*/
|
|
@@ -211,6 +461,10 @@ export type EnrichedGithubPullRequest = {
|
|
|
211
461
|
* The stored GitHub association key, in `owner/repo/pull/number` format.
|
|
212
462
|
*/
|
|
213
463
|
githubKey: string;
|
|
464
|
+
/**
|
|
465
|
+
* The pull request's labels, when known.
|
|
466
|
+
*/
|
|
467
|
+
labels?: Array<GithubPullRequestLabel> | null;
|
|
214
468
|
/**
|
|
215
469
|
* The GitHub pull request title, when enrichment succeeds.
|
|
216
470
|
*/
|
|
@@ -233,6 +487,11 @@ export type EnrichedGithubPullRequest = {
|
|
|
233
487
|
* The GitHub repository name.
|
|
234
488
|
*/
|
|
235
489
|
repo: string;
|
|
490
|
+
/**
|
|
491
|
+
* Each reviewer's latest submitted review, when known. Stored metadata merges this per
|
|
492
|
+
* reviewer, so a write that knows one review keeps the others.
|
|
493
|
+
*/
|
|
494
|
+
reviews?: Array<GithubPullRequestReview> | null;
|
|
236
495
|
status?: null | GithubPullRequestStatus;
|
|
237
496
|
/**
|
|
238
497
|
* The public GitHub URL for the pull request.
|
|
@@ -330,11 +589,23 @@ export type GetUserInfo = {
|
|
|
330
589
|
user_id: string;
|
|
331
590
|
};
|
|
332
591
|
export type GithubLinkStatusResponse = {
|
|
592
|
+
/**
|
|
593
|
+
* Stable ID of the authenticated user's linked GitHub account.
|
|
594
|
+
*/
|
|
595
|
+
github_user_id: string;
|
|
596
|
+
/**
|
|
597
|
+
* Login of the authenticated user's linked GitHub account.
|
|
598
|
+
*/
|
|
599
|
+
github_username: string;
|
|
333
600
|
/**
|
|
334
601
|
* Whether the user must reauthenticate their GitHub link.
|
|
335
602
|
*/
|
|
336
603
|
reauthentication_required: boolean;
|
|
337
604
|
};
|
|
605
|
+
/**
|
|
606
|
+
* How GitHub combines a pull request's commits into its base branch.
|
|
607
|
+
*/
|
|
608
|
+
export type GithubMergeMethod = 'merge' | 'squash' | 'rebase';
|
|
338
609
|
/**
|
|
339
610
|
* A check run associated with a GitHub pull request.
|
|
340
611
|
*/
|
|
@@ -435,17 +706,30 @@ export type GithubPullRequestComment = {
|
|
|
435
706
|
url?: string | null;
|
|
436
707
|
};
|
|
437
708
|
/**
|
|
438
|
-
* A
|
|
709
|
+
* A label on a GitHub pull request.
|
|
439
710
|
*/
|
|
440
|
-
export type
|
|
711
|
+
export type GithubPullRequestLabel = {
|
|
441
712
|
/**
|
|
442
|
-
*
|
|
713
|
+
* The label color as six hex digits without a leading `#`, when known.
|
|
443
714
|
*/
|
|
444
|
-
|
|
715
|
+
color?: string | null;
|
|
445
716
|
/**
|
|
446
|
-
* The
|
|
717
|
+
* The label name, unique within its repository regardless of case.
|
|
447
718
|
*/
|
|
448
|
-
|
|
719
|
+
name: string;
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Whether GitHub can merge a pull request's head into its base without conflicts.
|
|
723
|
+
*/
|
|
724
|
+
export type GithubPullRequestMergeability = 'mergeable' | 'conflicting' | 'unknown';
|
|
725
|
+
/**
|
|
726
|
+
* One pull request's mergeability.
|
|
727
|
+
*/
|
|
728
|
+
export type GithubPullRequestMergeabilityEntry = {
|
|
729
|
+
/**
|
|
730
|
+
* Whether the head merges cleanly into the base.
|
|
731
|
+
*/
|
|
732
|
+
mergeability: GithubPullRequestMergeability;
|
|
449
733
|
/**
|
|
450
734
|
* The GitHub pull request number.
|
|
451
735
|
*/
|
|
@@ -458,112 +742,364 @@ export type GithubPullRequestRef = {
|
|
|
458
742
|
* The GitHub repository name.
|
|
459
743
|
*/
|
|
460
744
|
repo: string;
|
|
461
|
-
/**
|
|
462
|
-
* The public GitHub URL for the pull request.
|
|
463
|
-
*/
|
|
464
|
-
url: string;
|
|
465
745
|
};
|
|
466
746
|
/**
|
|
467
|
-
*
|
|
747
|
+
* Request body for the mergeability of several pull requests.
|
|
468
748
|
*/
|
|
469
|
-
export type
|
|
470
|
-
export type GmailLinkStatusResponse = {
|
|
749
|
+
export type GithubPullRequestMergeabilityRequest = {
|
|
471
750
|
/**
|
|
472
|
-
*
|
|
751
|
+
* The pull requests to check, at most [`GithubPullRequestMergeabilityRequest::MAX`].
|
|
473
752
|
*/
|
|
474
|
-
|
|
753
|
+
pullRequests: Array<GithubPullRequestNumber>;
|
|
475
754
|
};
|
|
476
|
-
|
|
755
|
+
/**
|
|
756
|
+
* Response body for pull request mergeability. Pull requests the user
|
|
757
|
+
* cannot see are left out.
|
|
758
|
+
*/
|
|
759
|
+
export type GithubPullRequestMergeabilityResponse = {
|
|
477
760
|
/**
|
|
478
|
-
* The
|
|
761
|
+
* The mergeability of each visible pull request.
|
|
479
762
|
*/
|
|
480
|
-
|
|
763
|
+
pullRequests: Array<GithubPullRequestMergeabilityEntry>;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* One pull request, by repository and number.
|
|
767
|
+
*/
|
|
768
|
+
export type GithubPullRequestNumber = {
|
|
481
769
|
/**
|
|
482
|
-
* The
|
|
770
|
+
* The GitHub pull request number.
|
|
483
771
|
*/
|
|
484
|
-
|
|
485
|
-
};
|
|
486
|
-
export type InitGmailLinkResponse = {
|
|
772
|
+
number: number;
|
|
487
773
|
/**
|
|
488
|
-
* The
|
|
774
|
+
* The GitHub repository owner or organization.
|
|
489
775
|
*/
|
|
490
|
-
|
|
776
|
+
owner: string;
|
|
491
777
|
/**
|
|
492
|
-
* The
|
|
778
|
+
* The GitHub repository name.
|
|
493
779
|
*/
|
|
494
|
-
|
|
780
|
+
repo: string;
|
|
495
781
|
};
|
|
496
782
|
/**
|
|
497
|
-
*
|
|
783
|
+
* A pull request reference that can be enriched with live GitHub data.
|
|
498
784
|
*/
|
|
499
|
-
export type
|
|
785
|
+
export type GithubPullRequestRef = {
|
|
500
786
|
/**
|
|
501
|
-
*
|
|
787
|
+
* A compact label suitable for display in the UI.
|
|
502
788
|
*/
|
|
503
|
-
|
|
789
|
+
displayName: string;
|
|
504
790
|
/**
|
|
505
|
-
* The
|
|
791
|
+
* The stored GitHub association key, in `owner/repo/pull/number` format.
|
|
506
792
|
*/
|
|
507
|
-
|
|
508
|
-
};
|
|
509
|
-
/**
|
|
510
|
-
* A single invite entry with email and tier
|
|
511
|
-
*/
|
|
512
|
-
export type InviteEntry = {
|
|
793
|
+
githubKey: string;
|
|
513
794
|
/**
|
|
514
|
-
* The
|
|
795
|
+
* The GitHub pull request number.
|
|
515
796
|
*/
|
|
516
|
-
|
|
517
|
-
};
|
|
518
|
-
/**
|
|
519
|
-
* The request body to invite a user to a team
|
|
520
|
-
*/
|
|
521
|
-
export type InviteToTeamRequest = {
|
|
797
|
+
number: number;
|
|
522
798
|
/**
|
|
523
|
-
* The
|
|
799
|
+
* The GitHub repository owner or organization.
|
|
524
800
|
*/
|
|
525
|
-
|
|
526
|
-
};
|
|
527
|
-
/**
|
|
528
|
-
* Defines who can access an item through its share link.
|
|
529
|
-
*/
|
|
530
|
-
export type LinkShare = 'PUBLIC' | 'TEAM';
|
|
531
|
-
export type MacroApiTokenResponse = {
|
|
801
|
+
owner: string;
|
|
532
802
|
/**
|
|
533
|
-
* The
|
|
803
|
+
* The GitHub repository name.
|
|
534
804
|
*/
|
|
535
|
-
|
|
536
|
-
};
|
|
537
|
-
export type PasswordRequest = {
|
|
805
|
+
repo: string;
|
|
538
806
|
/**
|
|
539
|
-
* The
|
|
807
|
+
* The public GitHub URL for the pull request.
|
|
540
808
|
*/
|
|
541
|
-
|
|
542
|
-
password: string;
|
|
809
|
+
url: string;
|
|
543
810
|
};
|
|
544
|
-
|
|
811
|
+
/**
|
|
812
|
+
* A reviewer's latest submitted review on a pull request.
|
|
813
|
+
*/
|
|
814
|
+
export type GithubPullRequestReview = {
|
|
545
815
|
/**
|
|
546
|
-
* The
|
|
816
|
+
* The stable numeric GitHub user id of the reviewer, as a string.
|
|
547
817
|
*/
|
|
548
|
-
|
|
818
|
+
reviewerGithubUserId: string;
|
|
549
819
|
/**
|
|
550
|
-
* The
|
|
820
|
+
* The reviewer's GitHub login, when known.
|
|
551
821
|
*/
|
|
552
|
-
|
|
822
|
+
reviewerLogin?: string | null;
|
|
553
823
|
/**
|
|
554
|
-
*
|
|
824
|
+
* What the review said.
|
|
555
825
|
*/
|
|
556
|
-
|
|
557
|
-
};
|
|
558
|
-
export type PasswordlessStartedResponse = {
|
|
826
|
+
state: GithubPullRequestReviewState;
|
|
559
827
|
/**
|
|
560
|
-
*
|
|
561
|
-
* tooling can complete the flow without reading the email.
|
|
828
|
+
* When the review was submitted, when known.
|
|
562
829
|
*/
|
|
563
|
-
|
|
830
|
+
submittedAt?: string | null;
|
|
564
831
|
};
|
|
565
832
|
/**
|
|
566
|
-
*
|
|
833
|
+
* What a reviewer's latest review on a pull request said.
|
|
834
|
+
*/
|
|
835
|
+
export type GithubPullRequestReviewState = 'approved' | 'changes_requested' | 'commented' | 'dismissed';
|
|
836
|
+
/**
|
|
837
|
+
* The normalized lifecycle status for a GitHub pull request.
|
|
838
|
+
*/
|
|
839
|
+
export type GithubPullRequestStatus = 'open' | 'closed' | 'merged';
|
|
840
|
+
/**
|
|
841
|
+
* A GitHub user named on a pull request, such as an assignee.
|
|
842
|
+
*/
|
|
843
|
+
export type GithubPullRequestUser = {
|
|
844
|
+
/**
|
|
845
|
+
* The stable numeric GitHub user id, as a string.
|
|
846
|
+
*/
|
|
847
|
+
githubUserId: string;
|
|
848
|
+
/**
|
|
849
|
+
* The user's GitHub login, when known.
|
|
850
|
+
*/
|
|
851
|
+
login?: string | null;
|
|
852
|
+
};
|
|
853
|
+
export type GmailLinkStatusResponse = {
|
|
854
|
+
/**
|
|
855
|
+
* Whether the user must reauthenticate their Gmail link.
|
|
856
|
+
*/
|
|
857
|
+
reauthentication_required: boolean;
|
|
858
|
+
};
|
|
859
|
+
/**
|
|
860
|
+
* A link as shown on the staff dashboard.
|
|
861
|
+
*/
|
|
862
|
+
export type GtmInviteLink = {
|
|
863
|
+
/**
|
|
864
|
+
* When the account started a paid subscription.
|
|
865
|
+
*/
|
|
866
|
+
convertedAt?: string | null;
|
|
867
|
+
/**
|
|
868
|
+
* When the link was created.
|
|
869
|
+
*/
|
|
870
|
+
createdAt: string;
|
|
871
|
+
/**
|
|
872
|
+
* The Macro user id of the staff member who created the link.
|
|
873
|
+
*/
|
|
874
|
+
createdBy: string;
|
|
875
|
+
/**
|
|
876
|
+
* When the link stops being openable.
|
|
877
|
+
*/
|
|
878
|
+
expiresAt: string;
|
|
879
|
+
/**
|
|
880
|
+
* The recipient's first name.
|
|
881
|
+
*/
|
|
882
|
+
firstName: string;
|
|
883
|
+
/**
|
|
884
|
+
* When the welcome page first loaded.
|
|
885
|
+
*/
|
|
886
|
+
firstOpenedAt?: string | null;
|
|
887
|
+
/**
|
|
888
|
+
* Free months the promotion grants.
|
|
889
|
+
*/
|
|
890
|
+
freeMonths: number;
|
|
891
|
+
/**
|
|
892
|
+
* Primary key.
|
|
893
|
+
*/
|
|
894
|
+
id: string;
|
|
895
|
+
/**
|
|
896
|
+
* Internal note.
|
|
897
|
+
*/
|
|
898
|
+
note?: string | null;
|
|
899
|
+
/**
|
|
900
|
+
* How many times the welcome page loaded.
|
|
901
|
+
*/
|
|
902
|
+
openCount: number;
|
|
903
|
+
/**
|
|
904
|
+
* The Stripe promotion code applied at checkout.
|
|
905
|
+
*/
|
|
906
|
+
promoCode: string;
|
|
907
|
+
/**
|
|
908
|
+
* The recipient's email, when known.
|
|
909
|
+
*/
|
|
910
|
+
recipientEmail?: string | null;
|
|
911
|
+
/**
|
|
912
|
+
* When that account redeemed the link.
|
|
913
|
+
*/
|
|
914
|
+
redeemedAt?: string | null;
|
|
915
|
+
/**
|
|
916
|
+
* The Macro user id of the account that signed up through the link.
|
|
917
|
+
*/
|
|
918
|
+
redeemedBy?: string | null;
|
|
919
|
+
/**
|
|
920
|
+
* When staff revoked the link.
|
|
921
|
+
*/
|
|
922
|
+
revokedAt?: string | null;
|
|
923
|
+
/**
|
|
924
|
+
* Lifecycle status.
|
|
925
|
+
*/
|
|
926
|
+
status: GtmInviteLinkStatus;
|
|
927
|
+
/**
|
|
928
|
+
* The Stripe subscription id of that subscription.
|
|
929
|
+
*/
|
|
930
|
+
stripeSubscriptionId?: string | null;
|
|
931
|
+
/**
|
|
932
|
+
* The secret to embed in the link URL.
|
|
933
|
+
*/
|
|
934
|
+
token: string;
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* Links for the dashboard.
|
|
938
|
+
*/
|
|
939
|
+
export type GtmInviteLinkList = {
|
|
940
|
+
/**
|
|
941
|
+
* Newest first.
|
|
942
|
+
*/
|
|
943
|
+
links: Array<GtmInviteLink>;
|
|
944
|
+
};
|
|
945
|
+
/**
|
|
946
|
+
* Where a link is in its lifecycle.
|
|
947
|
+
*/
|
|
948
|
+
export type GtmInviteLinkStatus = 'active' | 'expired' | 'revoked' | 'redeemed' | 'converted';
|
|
949
|
+
/**
|
|
950
|
+
* The promotion a signed-in user's account holds.
|
|
951
|
+
*/
|
|
952
|
+
export type GtmInviteOffer = {
|
|
953
|
+
/**
|
|
954
|
+
* The first name the link was made out to.
|
|
955
|
+
*/
|
|
956
|
+
firstName: string;
|
|
957
|
+
/**
|
|
958
|
+
* Free months the promotion grants.
|
|
959
|
+
*/
|
|
960
|
+
freeMonths: number;
|
|
961
|
+
/**
|
|
962
|
+
* The redeemed link.
|
|
963
|
+
*/
|
|
964
|
+
linkId: string;
|
|
965
|
+
/**
|
|
966
|
+
* The Stripe promotion code checkout applies.
|
|
967
|
+
*/
|
|
968
|
+
promoCode: string;
|
|
969
|
+
/**
|
|
970
|
+
* When the account redeemed the link.
|
|
971
|
+
*/
|
|
972
|
+
redeemedAt: string;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* Whether the signed-in user holds an unused offer.
|
|
976
|
+
*/
|
|
977
|
+
export type GtmInviteOfferStatus = {
|
|
978
|
+
offer?: null | GtmInviteOffer;
|
|
979
|
+
};
|
|
980
|
+
export type InitGithubLinkResponse = {
|
|
981
|
+
/**
|
|
982
|
+
* The OAuth authorization URL to redirect the user to
|
|
983
|
+
*/
|
|
984
|
+
authorization_url: string;
|
|
985
|
+
/**
|
|
986
|
+
* The link ID for tracking the OAuth flow
|
|
987
|
+
*/
|
|
988
|
+
link_id: string;
|
|
989
|
+
};
|
|
990
|
+
export type InitGmailLinkResponse = {
|
|
991
|
+
/**
|
|
992
|
+
* The OAuth authorization URL to redirect the user to
|
|
993
|
+
*/
|
|
994
|
+
authorization_url: string;
|
|
995
|
+
/**
|
|
996
|
+
* The link ID for tracking the OAuth flow
|
|
997
|
+
*/
|
|
998
|
+
link_id: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Response returned when a Microsoft Outlook link is initiated.
|
|
1002
|
+
*/
|
|
1003
|
+
export type InitOutlookLinkResponse = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The OAuth authorization URL to redirect the user to.
|
|
1006
|
+
*/
|
|
1007
|
+
authorization_url: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* The link ID for tracking the OAuth flow.
|
|
1010
|
+
*/
|
|
1011
|
+
link_id: string;
|
|
1012
|
+
};
|
|
1013
|
+
/**
|
|
1014
|
+
* A single invite entry with email and tier
|
|
1015
|
+
*/
|
|
1016
|
+
export type InviteEntry = {
|
|
1017
|
+
/**
|
|
1018
|
+
* The email of the user to invite
|
|
1019
|
+
*/
|
|
1020
|
+
email: string;
|
|
1021
|
+
};
|
|
1022
|
+
/**
|
|
1023
|
+
* The request body to invite a user to a team
|
|
1024
|
+
*/
|
|
1025
|
+
export type InviteToTeamRequest = {
|
|
1026
|
+
/**
|
|
1027
|
+
* The invites to send, each with an email and tier
|
|
1028
|
+
*/
|
|
1029
|
+
invites: Array<InviteEntry>;
|
|
1030
|
+
};
|
|
1031
|
+
/**
|
|
1032
|
+
* Defines who can access an item through its share link.
|
|
1033
|
+
*/
|
|
1034
|
+
export type LinkShare = 'PUBLIC' | 'TEAM';
|
|
1035
|
+
export type MacroApiTokenResponse = {
|
|
1036
|
+
/**
|
|
1037
|
+
* The newly created macro_api_token
|
|
1038
|
+
*/
|
|
1039
|
+
macro_api_token: string;
|
|
1040
|
+
};
|
|
1041
|
+
/**
|
|
1042
|
+
* A request to merge one pull request on the user's behalf.
|
|
1043
|
+
*/
|
|
1044
|
+
export type MergeGithubPullRequestRequest = {
|
|
1045
|
+
mergeMethod?: null | GithubMergeMethod;
|
|
1046
|
+
/**
|
|
1047
|
+
* The GitHub pull request number.
|
|
1048
|
+
*/
|
|
1049
|
+
number: number;
|
|
1050
|
+
/**
|
|
1051
|
+
* The GitHub repository owner or organization.
|
|
1052
|
+
*/
|
|
1053
|
+
owner: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* The GitHub repository name.
|
|
1056
|
+
*/
|
|
1057
|
+
repo: string;
|
|
1058
|
+
};
|
|
1059
|
+
/**
|
|
1060
|
+
* Response body for a merged pull request.
|
|
1061
|
+
*/
|
|
1062
|
+
export type MergeGithubPullRequestResponse = {
|
|
1063
|
+
/**
|
|
1064
|
+
* GitHub's own summary of the merge.
|
|
1065
|
+
*/
|
|
1066
|
+
message: string;
|
|
1067
|
+
pullRequest?: null | EnrichedGithubPullRequest;
|
|
1068
|
+
/**
|
|
1069
|
+
* The merge commit's SHA.
|
|
1070
|
+
*/
|
|
1071
|
+
sha: string;
|
|
1072
|
+
};
|
|
1073
|
+
export type PasswordRequest = {
|
|
1074
|
+
/**
|
|
1075
|
+
* The email to login with
|
|
1076
|
+
*/
|
|
1077
|
+
email: string;
|
|
1078
|
+
password: string;
|
|
1079
|
+
};
|
|
1080
|
+
export type PasswordlessRequest = {
|
|
1081
|
+
/**
|
|
1082
|
+
* The email to initiate passwordless authentication for
|
|
1083
|
+
*/
|
|
1084
|
+
email: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* The redirect uri to redirect to after login
|
|
1087
|
+
*/
|
|
1088
|
+
redirect_uri: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* The referral code
|
|
1091
|
+
*/
|
|
1092
|
+
referral_code?: string | null;
|
|
1093
|
+
};
|
|
1094
|
+
export type PasswordlessStartedResponse = {
|
|
1095
|
+
/**
|
|
1096
|
+
* The one-time login code, returned only by local environments so dev
|
|
1097
|
+
* tooling can complete the flow without reading the email.
|
|
1098
|
+
*/
|
|
1099
|
+
code?: string | null;
|
|
1100
|
+
};
|
|
1101
|
+
/**
|
|
1102
|
+
* Request body for `PATCH /team/crm`.
|
|
567
1103
|
*/
|
|
568
1104
|
export type PatchTeamCrmSettingsRequest = {
|
|
569
1105
|
/**
|
|
@@ -603,6 +1139,15 @@ export type PatchTeamCrmSettingsResponse = {
|
|
|
603
1139
|
*/
|
|
604
1140
|
enabled: boolean;
|
|
605
1141
|
};
|
|
1142
|
+
/**
|
|
1143
|
+
* Request body for `PATCH /team/members/{member_user_id}/plan`.
|
|
1144
|
+
*/
|
|
1145
|
+
export type PatchTeamMemberPlanRequest = {
|
|
1146
|
+
/**
|
|
1147
|
+
* The plan to bill the member's seat at from now on.
|
|
1148
|
+
*/
|
|
1149
|
+
plan: SeatPlan;
|
|
1150
|
+
};
|
|
606
1151
|
/**
|
|
607
1152
|
* Request to update a team
|
|
608
1153
|
*/
|
|
@@ -674,6 +1219,62 @@ export type Permission = {
|
|
|
674
1219
|
*/
|
|
675
1220
|
id: string;
|
|
676
1221
|
};
|
|
1222
|
+
/**
|
|
1223
|
+
* One plan in the catalog.
|
|
1224
|
+
*/
|
|
1225
|
+
export type PlanCatalogEntry = {
|
|
1226
|
+
/**
|
|
1227
|
+
* Included AI per seat per period, in cents at provider cost. For the
|
|
1228
|
+
* free plan this is its monthly hard cap.
|
|
1229
|
+
*/
|
|
1230
|
+
included_ai_cents_per_seat: number;
|
|
1231
|
+
/**
|
|
1232
|
+
* Monthly subscription price per seat, cents.
|
|
1233
|
+
*/
|
|
1234
|
+
monthly_price_cents: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* Whether a new purchase or plan move may pick this plan today.
|
|
1237
|
+
*/
|
|
1238
|
+
purchasable: boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* The tier.
|
|
1241
|
+
*/
|
|
1242
|
+
tier: PlanTier;
|
|
1243
|
+
};
|
|
1244
|
+
/**
|
|
1245
|
+
* The plan catalog and the knobs the billing UI offers.
|
|
1246
|
+
*/
|
|
1247
|
+
export type PlanCatalogResponse = {
|
|
1248
|
+
/**
|
|
1249
|
+
* Thresholds automatic reload starts from before the payer sets their own.
|
|
1250
|
+
*/
|
|
1251
|
+
auto_reload_defaults: AutoReloadDefaults;
|
|
1252
|
+
/**
|
|
1253
|
+
* Largest allowed automatic reload target, cents.
|
|
1254
|
+
*/
|
|
1255
|
+
auto_reload_target_max_cents: number;
|
|
1256
|
+
/**
|
|
1257
|
+
* Credit packs a payer may buy, cents.
|
|
1258
|
+
*/
|
|
1259
|
+
credit_packs_cents: Array<number>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Largest allowed overage cap, cents.
|
|
1262
|
+
*/
|
|
1263
|
+
overage_limit_max_cents: number;
|
|
1264
|
+
/**
|
|
1265
|
+
* Smallest allowed overage cap, cents.
|
|
1266
|
+
*/
|
|
1267
|
+
overage_limit_min_cents: number;
|
|
1268
|
+
/**
|
|
1269
|
+
* Every plan, cheapest first. Clients read allowances from here rather
|
|
1270
|
+
* than hard-coding them; `purchasable` marks the plans a user can buy.
|
|
1271
|
+
*/
|
|
1272
|
+
plans: Array<PlanCatalogEntry>;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* The plans a user can be on, cheapest first.
|
|
1276
|
+
*/
|
|
1277
|
+
export type PlanTier = 'free' | 'premium' | 'max';
|
|
677
1278
|
export type PostGetNamesRequestBody = {
|
|
678
1279
|
user_ids: Array<string>;
|
|
679
1280
|
};
|
|
@@ -683,12 +1284,29 @@ export type ProfilePictureQueryParams = {
|
|
|
683
1284
|
export type ProfilePictures = {
|
|
684
1285
|
pictures: Array<UserProfilePicture>;
|
|
685
1286
|
};
|
|
1287
|
+
/**
|
|
1288
|
+
* What the public welcome page learns about a link.
|
|
1289
|
+
*/
|
|
1290
|
+
export type PublicGtmInviteLink = {
|
|
1291
|
+
/**
|
|
1292
|
+
* The recipient's first name.
|
|
1293
|
+
*/
|
|
1294
|
+
firstName: string;
|
|
1295
|
+
/**
|
|
1296
|
+
* Free months the promotion grants.
|
|
1297
|
+
*/
|
|
1298
|
+
freeMonths: number;
|
|
1299
|
+
/**
|
|
1300
|
+
* Whether the link can still be used.
|
|
1301
|
+
*/
|
|
1302
|
+
status: GtmInviteLinkStatus;
|
|
1303
|
+
};
|
|
686
1304
|
/**
|
|
687
1305
|
* The key the user pasted.
|
|
688
1306
|
*/
|
|
689
1307
|
export type PutCursorApiKeyRequest = {
|
|
690
1308
|
/**
|
|
691
|
-
* A `crsr_…`
|
|
1309
|
+
* A Cursor API key: `grok_…`, or `crsr_…` for older keys.
|
|
692
1310
|
*/
|
|
693
1311
|
apiKey: string;
|
|
694
1312
|
};
|
|
@@ -712,12 +1330,40 @@ export type PutUserNameQueryParams = {
|
|
|
712
1330
|
*/
|
|
713
1331
|
last_name?: string | null;
|
|
714
1332
|
};
|
|
1333
|
+
/**
|
|
1334
|
+
* Request body to redeem a link.
|
|
1335
|
+
*/
|
|
1336
|
+
export type RedeemGtmInviteLinkRequest = {
|
|
1337
|
+
/**
|
|
1338
|
+
* The token from the link URL.
|
|
1339
|
+
*/
|
|
1340
|
+
token: string;
|
|
1341
|
+
};
|
|
715
1342
|
export type ResendFusionauthVerifyUserEmailRequest = {
|
|
716
1343
|
/**
|
|
717
1344
|
* The email address to resend the verification email to
|
|
718
1345
|
*/
|
|
719
1346
|
email: string;
|
|
720
1347
|
};
|
|
1348
|
+
/**
|
|
1349
|
+
* A seat's future plan in the subscription's currently attached schedule.
|
|
1350
|
+
*/
|
|
1351
|
+
export type ScheduledSeatPlan = {
|
|
1352
|
+
/**
|
|
1353
|
+
* Provider-confirmed time when the future phase starts.
|
|
1354
|
+
*/
|
|
1355
|
+
effectiveAt: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* Plan that takes effect at renewal.
|
|
1358
|
+
*/
|
|
1359
|
+
plan: SeatPlan;
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* The paid plan a seat is billed at. Every member of a paying team has one;
|
|
1363
|
+
* a team may mix them, and its Stripe subscription carries one seat item per
|
|
1364
|
+
* plan in use.
|
|
1365
|
+
*/
|
|
1366
|
+
export type SeatPlan = 'premium' | 'max';
|
|
721
1367
|
/**
|
|
722
1368
|
* The body which is used to describe the recipient email
|
|
723
1369
|
*/
|
|
@@ -739,6 +1385,38 @@ export type SendMobileWelcomeEmailResponse = {
|
|
|
739
1385
|
*/
|
|
740
1386
|
sent: boolean;
|
|
741
1387
|
};
|
|
1388
|
+
/**
|
|
1389
|
+
* A request to mark one pull request as a draft, or as ready for review, on
|
|
1390
|
+
* the user's behalf.
|
|
1391
|
+
*/
|
|
1392
|
+
export type SetGithubPullRequestDraftRequest = {
|
|
1393
|
+
/**
|
|
1394
|
+
* `true` converts the pull request to a draft; `false` marks it ready for review.
|
|
1395
|
+
*/
|
|
1396
|
+
draft: boolean;
|
|
1397
|
+
/**
|
|
1398
|
+
* The GitHub pull request number.
|
|
1399
|
+
*/
|
|
1400
|
+
number: number;
|
|
1401
|
+
/**
|
|
1402
|
+
* The GitHub repository owner or organization.
|
|
1403
|
+
*/
|
|
1404
|
+
owner: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* The GitHub repository name.
|
|
1407
|
+
*/
|
|
1408
|
+
repo: string;
|
|
1409
|
+
};
|
|
1410
|
+
/**
|
|
1411
|
+
* Response body for a pull request whose draft state changed.
|
|
1412
|
+
*/
|
|
1413
|
+
export type SetGithubPullRequestDraftResponse = {
|
|
1414
|
+
/**
|
|
1415
|
+
* Whether the pull request is now a draft.
|
|
1416
|
+
*/
|
|
1417
|
+
draft: boolean;
|
|
1418
|
+
pullRequest?: null | EnrichedGithubPullRequest;
|
|
1419
|
+
};
|
|
742
1420
|
export type SsoRequiredResponse = {
|
|
743
1421
|
/**
|
|
744
1422
|
* The idp_id you need to perform sso login with.
|
|
@@ -754,6 +1432,16 @@ export type StripeSessionResponse = {
|
|
|
754
1432
|
*/
|
|
755
1433
|
url: string;
|
|
756
1434
|
};
|
|
1435
|
+
/**
|
|
1436
|
+
* Current renewal and scheduled change; empty for accounts without a subscription.
|
|
1437
|
+
*/
|
|
1438
|
+
export type SubscriptionStatus = {
|
|
1439
|
+
/**
|
|
1440
|
+
* Provider-confirmed subscription renewal date.
|
|
1441
|
+
*/
|
|
1442
|
+
renewalDate?: string | null;
|
|
1443
|
+
scheduledChange?: null | ScheduledSeatPlan;
|
|
1444
|
+
};
|
|
757
1445
|
/**
|
|
758
1446
|
* The Team struct
|
|
759
1447
|
*/
|
|
@@ -831,6 +1519,11 @@ export type TeamInvitesResponse = {
|
|
|
831
1519
|
* The team member struct
|
|
832
1520
|
*/
|
|
833
1521
|
export type TeamMember = {
|
|
1522
|
+
/**
|
|
1523
|
+
* The paid plan the member's seat is billed at. Meaningful on paying
|
|
1524
|
+
* and enterprise teams; free-team members carry the default.
|
|
1525
|
+
*/
|
|
1526
|
+
plan: SeatPlan;
|
|
834
1527
|
/**
|
|
835
1528
|
* The role of the team member
|
|
836
1529
|
*/
|
|
@@ -860,6 +1553,13 @@ export type TeamWithMembers = {
|
|
|
860
1553
|
* The members of the team
|
|
861
1554
|
*/
|
|
862
1555
|
members: Array<TeamMember>;
|
|
1556
|
+
/**
|
|
1557
|
+
* Provider-confirmed pending seat changes, keyed by member user ID.
|
|
1558
|
+
* Empty when no changes apply to this viewer; absent when the lookup fails.
|
|
1559
|
+
*/
|
|
1560
|
+
scheduled_seat_plans?: {
|
|
1561
|
+
[key: string]: ScheduledSeatPlan;
|
|
1562
|
+
} | null;
|
|
863
1563
|
/**
|
|
864
1564
|
* The team
|
|
865
1565
|
*/
|
|
@@ -885,6 +1585,143 @@ export type ToggleNonAdminInvitesResponse = {
|
|
|
885
1585
|
*/
|
|
886
1586
|
allow_non_admin_invites: boolean;
|
|
887
1587
|
};
|
|
1588
|
+
/**
|
|
1589
|
+
* Whether the authenticated customer can receive the introductory Pro trial.
|
|
1590
|
+
*/
|
|
1591
|
+
export type TrialEligibility = {
|
|
1592
|
+
/**
|
|
1593
|
+
* Confirmed against the same subscription history used during checkout.
|
|
1594
|
+
*/
|
|
1595
|
+
eligible: boolean;
|
|
1596
|
+
/**
|
|
1597
|
+
* An existing subscription requires management instead of a new checkout.
|
|
1598
|
+
*/
|
|
1599
|
+
existingSubscription: boolean;
|
|
1600
|
+
};
|
|
1601
|
+
/**
|
|
1602
|
+
* Request body for [`update_auto_reload_handler`].
|
|
1603
|
+
*/
|
|
1604
|
+
export type UpdateAutoReloadRequest = {
|
|
1605
|
+
/**
|
|
1606
|
+
* Purchase prepaid credits automatically using the payer's card.
|
|
1607
|
+
*/
|
|
1608
|
+
enabled: boolean;
|
|
1609
|
+
/**
|
|
1610
|
+
* Reload once the balance drops below this, cents. Must be positive.
|
|
1611
|
+
*/
|
|
1612
|
+
minimumBalanceCents: number;
|
|
1613
|
+
/**
|
|
1614
|
+
* Most to reload per calendar month, cents. Omit or `null` for no limit.
|
|
1615
|
+
* Must be at least the catalog's `overage_limit_min_cents` (legacy name).
|
|
1616
|
+
*/
|
|
1617
|
+
monthlySpendLimitCents?: number | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* Reload the balance back up to this, cents. At least $0.50 above the
|
|
1620
|
+
* minimum and no more than the catalog's `auto_reload_target_max_cents`.
|
|
1621
|
+
*/
|
|
1622
|
+
targetBalanceCents: number;
|
|
1623
|
+
};
|
|
1624
|
+
/**
|
|
1625
|
+
* Request body for [`update_overage_handler`].
|
|
1626
|
+
*/
|
|
1627
|
+
export type UpdateOverageRequest = {
|
|
1628
|
+
/**
|
|
1629
|
+
* Bill usage past allowance and credits.
|
|
1630
|
+
*/
|
|
1631
|
+
enabled: boolean;
|
|
1632
|
+
/**
|
|
1633
|
+
* Per-period cap on overage spend, cents. Required when enabling.
|
|
1634
|
+
*/
|
|
1635
|
+
limitCents?: number;
|
|
1636
|
+
};
|
|
1637
|
+
/**
|
|
1638
|
+
* The payer's current-period position, as shown in Billing settings and used
|
|
1639
|
+
* by the gate.
|
|
1640
|
+
*/
|
|
1641
|
+
export type UsageSnapshot = {
|
|
1642
|
+
/**
|
|
1643
|
+
* Automatic credit reload settings. `active` means the payer opted in and
|
|
1644
|
+
* reloads are not suspended.
|
|
1645
|
+
*/
|
|
1646
|
+
auto_reload: AutoReloadSnapshot;
|
|
1647
|
+
blocked_reason?: null | DenyReason;
|
|
1648
|
+
/**
|
|
1649
|
+
* Whether the requesting user is the payer.
|
|
1650
|
+
*/
|
|
1651
|
+
can_manage_billing: boolean;
|
|
1652
|
+
/**
|
|
1653
|
+
* Shared prepaid credit balance, in customer cents.
|
|
1654
|
+
*/
|
|
1655
|
+
credit_balance_cents: number;
|
|
1656
|
+
/**
|
|
1657
|
+
* Shared payer credits already applied to this period, in customer cents.
|
|
1658
|
+
*/
|
|
1659
|
+
credits_consumed_cents: number;
|
|
1660
|
+
/**
|
|
1661
|
+
* Whether prepaid credits belong to the team, including a team with one seat.
|
|
1662
|
+
*/
|
|
1663
|
+
credits_shared_with_team: boolean;
|
|
1664
|
+
/**
|
|
1665
|
+
* Included AI for this user's seat this period, in cents at provider cost.
|
|
1666
|
+
*/
|
|
1667
|
+
included_cents: number;
|
|
1668
|
+
/**
|
|
1669
|
+
* Shared overage charged so far this period, in customer cents.
|
|
1670
|
+
*/
|
|
1671
|
+
overage_charged_cents: number;
|
|
1672
|
+
/**
|
|
1673
|
+
* Legacy API name for the automatic reload opt-in. Never authorizes direct charges.
|
|
1674
|
+
*/
|
|
1675
|
+
overage_enabled: boolean;
|
|
1676
|
+
/**
|
|
1677
|
+
* Per-period overage cap, in customer cents.
|
|
1678
|
+
*/
|
|
1679
|
+
overage_limit_cents: number;
|
|
1680
|
+
/**
|
|
1681
|
+
* Whether overage is paused after a failed charge.
|
|
1682
|
+
*/
|
|
1683
|
+
overage_suspended: boolean;
|
|
1684
|
+
/**
|
|
1685
|
+
* The payer for this user's AI.
|
|
1686
|
+
*/
|
|
1687
|
+
payer: string;
|
|
1688
|
+
/**
|
|
1689
|
+
* Period end (exclusive).
|
|
1690
|
+
*/
|
|
1691
|
+
period_end: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* Period start.
|
|
1694
|
+
*/
|
|
1695
|
+
period_start: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* Cost cents of usage this seat may still consume: its remaining allowance
|
|
1698
|
+
* plus whatever shared credit and overage headroom pays for at the markup.
|
|
1699
|
+
* 0 when blocked.
|
|
1700
|
+
*/
|
|
1701
|
+
remaining_cents: number;
|
|
1702
|
+
/**
|
|
1703
|
+
* Seats billed to the payer.
|
|
1704
|
+
*/
|
|
1705
|
+
seats: number;
|
|
1706
|
+
/**
|
|
1707
|
+
* The plan.
|
|
1708
|
+
*/
|
|
1709
|
+
tier: PlanTier;
|
|
1710
|
+
/**
|
|
1711
|
+
* Team-wide usage beyond per-seat allowances, at the overage markup, that
|
|
1712
|
+
* is not yet covered by shared credits or charges (awaiting settlement).
|
|
1713
|
+
* Customer cents.
|
|
1714
|
+
*/
|
|
1715
|
+
uncovered_cents: number;
|
|
1716
|
+
/**
|
|
1717
|
+
* Enterprise: never metered.
|
|
1718
|
+
*/
|
|
1719
|
+
unlimited: boolean;
|
|
1720
|
+
/**
|
|
1721
|
+
* AI used by this user this period, in cents at provider cost.
|
|
1722
|
+
*/
|
|
1723
|
+
used_cents: number;
|
|
1724
|
+
};
|
|
888
1725
|
export type UserLinkResponse = {
|
|
889
1726
|
/**
|
|
890
1727
|
* Whether or not a link exists for the given idp
|
|
@@ -919,32 +1756,251 @@ export type UserProfilePicture = {
|
|
|
919
1756
|
*/
|
|
920
1757
|
export type UserQuota = {
|
|
921
1758
|
/**
|
|
922
|
-
* The user's total number of AI chat messages the user has sent.
|
|
1759
|
+
* The user's total number of AI chat messages the user has sent.
|
|
1760
|
+
*/
|
|
1761
|
+
ai_chat_messages: number;
|
|
1762
|
+
/**
|
|
1763
|
+
* The user's total number of documents they have created.
|
|
1764
|
+
*/
|
|
1765
|
+
documents: number;
|
|
1766
|
+
/**
|
|
1767
|
+
* The maximum number of AI chat messages they can send.
|
|
1768
|
+
*/
|
|
1769
|
+
max_ai_chat_messages: number;
|
|
1770
|
+
/**
|
|
1771
|
+
* The maximum number of documents they can create.
|
|
1772
|
+
*/
|
|
1773
|
+
max_documents: number;
|
|
1774
|
+
};
|
|
1775
|
+
export type UserTokensResponse = {
|
|
1776
|
+
/**
|
|
1777
|
+
* The users access token
|
|
1778
|
+
*/
|
|
1779
|
+
access_token: string;
|
|
1780
|
+
/**
|
|
1781
|
+
* The users refresh token
|
|
1782
|
+
*/
|
|
1783
|
+
refresh_token: string;
|
|
1784
|
+
};
|
|
1785
|
+
export type UpdateAiBillingAutoReloadData = {
|
|
1786
|
+
body: UpdateAutoReloadRequest;
|
|
1787
|
+
path?: never;
|
|
1788
|
+
query?: never;
|
|
1789
|
+
url: '/ai-billing/auto-reload';
|
|
1790
|
+
};
|
|
1791
|
+
export type UpdateAiBillingAutoReloadErrors = {
|
|
1792
|
+
/**
|
|
1793
|
+
* Invalid thresholds
|
|
1794
|
+
*/
|
|
1795
|
+
400: AiBillingErrorBody;
|
|
1796
|
+
/**
|
|
1797
|
+
* Unauthorized
|
|
1798
|
+
*/
|
|
1799
|
+
401: unknown;
|
|
1800
|
+
/**
|
|
1801
|
+
* A paid plan is required
|
|
1802
|
+
*/
|
|
1803
|
+
402: AiBillingErrorBody;
|
|
1804
|
+
/**
|
|
1805
|
+
* Only the payer may change billing
|
|
1806
|
+
*/
|
|
1807
|
+
403: AiBillingErrorBody;
|
|
1808
|
+
/**
|
|
1809
|
+
* Internal server error
|
|
1810
|
+
*/
|
|
1811
|
+
500: AiBillingErrorBody;
|
|
1812
|
+
};
|
|
1813
|
+
export type UpdateAiBillingAutoReloadError = UpdateAiBillingAutoReloadErrors[keyof UpdateAiBillingAutoReloadErrors];
|
|
1814
|
+
export type UpdateAiBillingAutoReloadResponses = {
|
|
1815
|
+
/**
|
|
1816
|
+
* Updated position
|
|
1817
|
+
*/
|
|
1818
|
+
200: UsageSnapshot;
|
|
1819
|
+
};
|
|
1820
|
+
export type UpdateAiBillingAutoReloadResponse = UpdateAiBillingAutoReloadResponses[keyof UpdateAiBillingAutoReloadResponses];
|
|
1821
|
+
export type CreateAiCreditCheckoutData = {
|
|
1822
|
+
body: CreditCheckoutRequestBody;
|
|
1823
|
+
path?: never;
|
|
1824
|
+
query?: never;
|
|
1825
|
+
url: '/ai-billing/credits/checkout';
|
|
1826
|
+
};
|
|
1827
|
+
export type CreateAiCreditCheckoutErrors = {
|
|
1828
|
+
/**
|
|
1829
|
+
* Invalid pack, untrusted return URL, or no payment account
|
|
1830
|
+
*/
|
|
1831
|
+
400: AiBillingErrorBody;
|
|
1832
|
+
/**
|
|
1833
|
+
* Unauthorized
|
|
1834
|
+
*/
|
|
1835
|
+
401: unknown;
|
|
1836
|
+
/**
|
|
1837
|
+
* A paid plan is required
|
|
1838
|
+
*/
|
|
1839
|
+
402: AiBillingErrorBody;
|
|
1840
|
+
/**
|
|
1841
|
+
* Only the payer may buy credits
|
|
1842
|
+
*/
|
|
1843
|
+
403: AiBillingErrorBody;
|
|
1844
|
+
/**
|
|
1845
|
+
* Internal server error
|
|
1846
|
+
*/
|
|
1847
|
+
500: AiBillingErrorBody;
|
|
1848
|
+
};
|
|
1849
|
+
export type CreateAiCreditCheckoutError = CreateAiCreditCheckoutErrors[keyof CreateAiCreditCheckoutErrors];
|
|
1850
|
+
export type CreateAiCreditCheckoutResponses = {
|
|
1851
|
+
/**
|
|
1852
|
+
* Checkout URL
|
|
1853
|
+
*/
|
|
1854
|
+
200: CreditCheckoutResponse;
|
|
1855
|
+
};
|
|
1856
|
+
export type CreateAiCreditCheckoutResponse = CreateAiCreditCheckoutResponses[keyof CreateAiCreditCheckoutResponses];
|
|
1857
|
+
export type UpdateAiBillingOverageData = {
|
|
1858
|
+
body: UpdateOverageRequest;
|
|
1859
|
+
path?: never;
|
|
1860
|
+
query?: never;
|
|
1861
|
+
url: '/ai-billing/overage';
|
|
1862
|
+
};
|
|
1863
|
+
export type UpdateAiBillingOverageErrors = {
|
|
1864
|
+
/**
|
|
1865
|
+
* Invalid limit
|
|
1866
|
+
*/
|
|
1867
|
+
400: AiBillingErrorBody;
|
|
1868
|
+
/**
|
|
1869
|
+
* Unauthorized
|
|
1870
|
+
*/
|
|
1871
|
+
401: unknown;
|
|
1872
|
+
/**
|
|
1873
|
+
* A paid plan is required
|
|
923
1874
|
*/
|
|
924
|
-
|
|
1875
|
+
402: AiBillingErrorBody;
|
|
925
1876
|
/**
|
|
926
|
-
*
|
|
1877
|
+
* Only the payer may change billing
|
|
927
1878
|
*/
|
|
928
|
-
|
|
1879
|
+
403: AiBillingErrorBody;
|
|
929
1880
|
/**
|
|
930
|
-
*
|
|
1881
|
+
* Internal server error
|
|
931
1882
|
*/
|
|
932
|
-
|
|
1883
|
+
500: AiBillingErrorBody;
|
|
1884
|
+
};
|
|
1885
|
+
export type UpdateAiBillingOverageError = UpdateAiBillingOverageErrors[keyof UpdateAiBillingOverageErrors];
|
|
1886
|
+
export type UpdateAiBillingOverageResponses = {
|
|
933
1887
|
/**
|
|
934
|
-
*
|
|
1888
|
+
* Updated position
|
|
935
1889
|
*/
|
|
936
|
-
|
|
1890
|
+
200: UsageSnapshot;
|
|
937
1891
|
};
|
|
938
|
-
export type
|
|
1892
|
+
export type UpdateAiBillingOverageResponse = UpdateAiBillingOverageResponses[keyof UpdateAiBillingOverageResponses];
|
|
1893
|
+
export type GetAiBillingPlansData = {
|
|
1894
|
+
body?: never;
|
|
1895
|
+
path?: never;
|
|
1896
|
+
query?: never;
|
|
1897
|
+
url: '/ai-billing/plans';
|
|
1898
|
+
};
|
|
1899
|
+
export type GetAiBillingPlansResponses = {
|
|
939
1900
|
/**
|
|
940
|
-
*
|
|
1901
|
+
* Plan catalog
|
|
941
1902
|
*/
|
|
942
|
-
|
|
1903
|
+
200: PlanCatalogResponse;
|
|
1904
|
+
};
|
|
1905
|
+
export type GetAiBillingPlansResponse = GetAiBillingPlansResponses[keyof GetAiBillingPlansResponses];
|
|
1906
|
+
export type GetAiBillingSummaryData = {
|
|
1907
|
+
body?: never;
|
|
1908
|
+
path?: never;
|
|
1909
|
+
query?: never;
|
|
1910
|
+
url: '/ai-billing/summary';
|
|
1911
|
+
};
|
|
1912
|
+
export type GetAiBillingSummaryErrors = {
|
|
943
1913
|
/**
|
|
944
|
-
*
|
|
1914
|
+
* Unauthorized
|
|
945
1915
|
*/
|
|
946
|
-
|
|
1916
|
+
401: unknown;
|
|
1917
|
+
/**
|
|
1918
|
+
* Internal server error
|
|
1919
|
+
*/
|
|
1920
|
+
500: AiBillingErrorBody;
|
|
1921
|
+
};
|
|
1922
|
+
export type GetAiBillingSummaryError = GetAiBillingSummaryErrors[keyof GetAiBillingSummaryErrors];
|
|
1923
|
+
export type GetAiBillingSummaryResponses = {
|
|
1924
|
+
/**
|
|
1925
|
+
* Current-period position
|
|
1926
|
+
*/
|
|
1927
|
+
200: UsageSnapshot;
|
|
1928
|
+
};
|
|
1929
|
+
export type GetAiBillingSummaryResponse = GetAiBillingSummaryResponses[keyof GetAiBillingSummaryResponses];
|
|
1930
|
+
export type DisconnectCodexData = {
|
|
1931
|
+
body?: never;
|
|
1932
|
+
path?: never;
|
|
1933
|
+
query?: never;
|
|
1934
|
+
url: '/codex';
|
|
1935
|
+
};
|
|
1936
|
+
export type DisconnectCodexResponses = {
|
|
1937
|
+
204: void;
|
|
1938
|
+
};
|
|
1939
|
+
export type DisconnectCodexResponse = DisconnectCodexResponses[keyof DisconnectCodexResponses];
|
|
1940
|
+
export type GetCodexConnectionData = {
|
|
1941
|
+
body?: never;
|
|
1942
|
+
path?: never;
|
|
1943
|
+
query?: never;
|
|
1944
|
+
url: '/codex';
|
|
1945
|
+
};
|
|
1946
|
+
export type GetCodexConnectionResponses = {
|
|
1947
|
+
200: CodexConnectionStatus;
|
|
1948
|
+
};
|
|
1949
|
+
export type GetCodexConnectionResponse = GetCodexConnectionResponses[keyof GetCodexConnectionResponses];
|
|
1950
|
+
export type ConfigureCodexData = {
|
|
1951
|
+
body: CodexConfigRequest;
|
|
1952
|
+
path?: never;
|
|
1953
|
+
query?: never;
|
|
1954
|
+
url: '/codex/config';
|
|
1955
|
+
};
|
|
1956
|
+
export type ConfigureCodexResponses = {
|
|
1957
|
+
200: CodexConnectionStatus;
|
|
1958
|
+
};
|
|
1959
|
+
export type ConfigureCodexResponse = ConfigureCodexResponses[keyof ConfigureCodexResponses];
|
|
1960
|
+
export type ListCodexEnvironmentsData = {
|
|
1961
|
+
body?: never;
|
|
1962
|
+
path?: never;
|
|
1963
|
+
query?: never;
|
|
1964
|
+
url: '/codex/environments';
|
|
1965
|
+
};
|
|
1966
|
+
export type ListCodexEnvironmentsResponses = {
|
|
1967
|
+
200: Array<CodexEnvironment>;
|
|
1968
|
+
};
|
|
1969
|
+
export type ListCodexEnvironmentsResponse = ListCodexEnvironmentsResponses[keyof ListCodexEnvironmentsResponses];
|
|
1970
|
+
export type StartCodexLoginData = {
|
|
1971
|
+
body?: never;
|
|
1972
|
+
path?: never;
|
|
1973
|
+
query?: never;
|
|
1974
|
+
url: '/codex/login';
|
|
1975
|
+
};
|
|
1976
|
+
export type StartCodexLoginResponses = {
|
|
1977
|
+
200: CodexLoginStart;
|
|
1978
|
+
};
|
|
1979
|
+
export type StartCodexLoginResponse = StartCodexLoginResponses[keyof StartCodexLoginResponses];
|
|
1980
|
+
export type CancelCodexLoginData = {
|
|
1981
|
+
body?: never;
|
|
1982
|
+
path: {
|
|
1983
|
+
attempt_id: string;
|
|
1984
|
+
};
|
|
1985
|
+
query?: never;
|
|
1986
|
+
url: '/codex/login/{attempt_id}';
|
|
1987
|
+
};
|
|
1988
|
+
export type CancelCodexLoginResponses = {
|
|
1989
|
+
204: void;
|
|
1990
|
+
};
|
|
1991
|
+
export type CancelCodexLoginResponse = CancelCodexLoginResponses[keyof CancelCodexLoginResponses];
|
|
1992
|
+
export type PollCodexLoginData = {
|
|
1993
|
+
body?: never;
|
|
1994
|
+
path: {
|
|
1995
|
+
attempt_id: string;
|
|
1996
|
+
};
|
|
1997
|
+
query?: never;
|
|
1998
|
+
url: '/codex/login/{attempt_id}';
|
|
947
1999
|
};
|
|
2000
|
+
export type PollCodexLoginResponses = {
|
|
2001
|
+
200: CodexLoginPoll;
|
|
2002
|
+
};
|
|
2003
|
+
export type PollCodexLoginResponse = PollCodexLoginResponses[keyof PollCodexLoginResponses];
|
|
948
2004
|
export type DeleteCursorApiKeyData = {
|
|
949
2005
|
body?: never;
|
|
950
2006
|
path?: never;
|
|
@@ -1091,6 +2147,34 @@ export type VerifyEmailLinkResponses = {
|
|
|
1091
2147
|
200: EmptyResponse;
|
|
1092
2148
|
};
|
|
1093
2149
|
export type VerifyEmailLinkResponse = VerifyEmailLinkResponses[keyof VerifyEmailLinkResponses];
|
|
2150
|
+
export type SetGithubPullRequestDraftData = {
|
|
2151
|
+
body: SetGithubPullRequestDraftRequest;
|
|
2152
|
+
path?: never;
|
|
2153
|
+
query?: never;
|
|
2154
|
+
url: '/github_pull_requests/draft';
|
|
2155
|
+
};
|
|
2156
|
+
export type SetGithubPullRequestDraftErrors = {
|
|
2157
|
+
401: ErrorResponse;
|
|
2158
|
+
/**
|
|
2159
|
+
* The user cannot change the pull request
|
|
2160
|
+
*/
|
|
2161
|
+
403: ErrorResponse;
|
|
2162
|
+
/**
|
|
2163
|
+
* No GitHub link, or the pull request is not visible to the user
|
|
2164
|
+
*/
|
|
2165
|
+
404: ErrorResponse;
|
|
2166
|
+
/**
|
|
2167
|
+
* GitHub declined the change
|
|
2168
|
+
*/
|
|
2169
|
+
422: ErrorResponse;
|
|
2170
|
+
428: ErrorResponse;
|
|
2171
|
+
500: ErrorResponse;
|
|
2172
|
+
};
|
|
2173
|
+
export type SetGithubPullRequestDraftError = SetGithubPullRequestDraftErrors[keyof SetGithubPullRequestDraftErrors];
|
|
2174
|
+
export type SetGithubPullRequestDraftResponses = {
|
|
2175
|
+
200: SetGithubPullRequestDraftResponse;
|
|
2176
|
+
};
|
|
2177
|
+
export type SetGithubPullRequestDraftResponse2 = SetGithubPullRequestDraftResponses[keyof SetGithubPullRequestDraftResponses];
|
|
1094
2178
|
export type EnrichGithubPullRequestsData = {
|
|
1095
2179
|
body: EnrichGithubPullRequestsProxyRequest;
|
|
1096
2180
|
path?: never;
|
|
@@ -1108,6 +2192,176 @@ export type EnrichGithubPullRequestsResponses = {
|
|
|
1108
2192
|
200: EnrichGithubPullRequestsResponse;
|
|
1109
2193
|
};
|
|
1110
2194
|
export type EnrichGithubPullRequestsResponse2 = EnrichGithubPullRequestsResponses[keyof EnrichGithubPullRequestsResponses];
|
|
2195
|
+
export type MergeGithubPullRequestData = {
|
|
2196
|
+
body: MergeGithubPullRequestRequest;
|
|
2197
|
+
path?: never;
|
|
2198
|
+
query?: never;
|
|
2199
|
+
url: '/github_pull_requests/merge';
|
|
2200
|
+
};
|
|
2201
|
+
export type MergeGithubPullRequestErrors = {
|
|
2202
|
+
401: ErrorResponse;
|
|
2203
|
+
/**
|
|
2204
|
+
* The user cannot push to the repository
|
|
2205
|
+
*/
|
|
2206
|
+
403: ErrorResponse;
|
|
2207
|
+
/**
|
|
2208
|
+
* No GitHub link, or the pull request is not visible to the user
|
|
2209
|
+
*/
|
|
2210
|
+
404: ErrorResponse;
|
|
2211
|
+
/**
|
|
2212
|
+
* The pull request is not mergeable as it stands, or its head moved
|
|
2213
|
+
*/
|
|
2214
|
+
409: ErrorResponse;
|
|
2215
|
+
422: ErrorResponse;
|
|
2216
|
+
428: ErrorResponse;
|
|
2217
|
+
500: ErrorResponse;
|
|
2218
|
+
};
|
|
2219
|
+
export type MergeGithubPullRequestError = MergeGithubPullRequestErrors[keyof MergeGithubPullRequestErrors];
|
|
2220
|
+
export type MergeGithubPullRequestResponses = {
|
|
2221
|
+
200: MergeGithubPullRequestResponse;
|
|
2222
|
+
};
|
|
2223
|
+
export type MergeGithubPullRequestResponse2 = MergeGithubPullRequestResponses[keyof MergeGithubPullRequestResponses];
|
|
2224
|
+
export type GetGithubPullRequestMergeabilityData = {
|
|
2225
|
+
body: GithubPullRequestMergeabilityRequest;
|
|
2226
|
+
path?: never;
|
|
2227
|
+
query?: never;
|
|
2228
|
+
url: '/github_pull_requests/mergeability';
|
|
2229
|
+
};
|
|
2230
|
+
export type GetGithubPullRequestMergeabilityErrors = {
|
|
2231
|
+
401: ErrorResponse;
|
|
2232
|
+
/**
|
|
2233
|
+
* No GitHub link
|
|
2234
|
+
*/
|
|
2235
|
+
404: ErrorResponse;
|
|
2236
|
+
/**
|
|
2237
|
+
* Too many pull requests requested
|
|
2238
|
+
*/
|
|
2239
|
+
422: ErrorResponse;
|
|
2240
|
+
428: ErrorResponse;
|
|
2241
|
+
500: ErrorResponse;
|
|
2242
|
+
};
|
|
2243
|
+
export type GetGithubPullRequestMergeabilityError = GetGithubPullRequestMergeabilityErrors[keyof GetGithubPullRequestMergeabilityErrors];
|
|
2244
|
+
export type GetGithubPullRequestMergeabilityResponses = {
|
|
2245
|
+
200: GithubPullRequestMergeabilityResponse;
|
|
2246
|
+
};
|
|
2247
|
+
export type GetGithubPullRequestMergeabilityResponse = GetGithubPullRequestMergeabilityResponses[keyof GetGithubPullRequestMergeabilityResponses];
|
|
2248
|
+
export type ListGtmInviteLinksData = {
|
|
2249
|
+
body?: never;
|
|
2250
|
+
path?: never;
|
|
2251
|
+
query?: {
|
|
2252
|
+
/**
|
|
2253
|
+
* Only the caller's own links (default: every staff member's).
|
|
2254
|
+
*/
|
|
2255
|
+
mine?: boolean;
|
|
2256
|
+
};
|
|
2257
|
+
url: '/gtm-invite/links';
|
|
2258
|
+
};
|
|
2259
|
+
export type ListGtmInviteLinksErrors = {
|
|
2260
|
+
401: ErrorResponse;
|
|
2261
|
+
403: ErrorResponse;
|
|
2262
|
+
500: ErrorResponse;
|
|
2263
|
+
};
|
|
2264
|
+
export type ListGtmInviteLinksError = ListGtmInviteLinksErrors[keyof ListGtmInviteLinksErrors];
|
|
2265
|
+
export type ListGtmInviteLinksResponses = {
|
|
2266
|
+
200: GtmInviteLinkList;
|
|
2267
|
+
};
|
|
2268
|
+
export type ListGtmInviteLinksResponse = ListGtmInviteLinksResponses[keyof ListGtmInviteLinksResponses];
|
|
2269
|
+
export type CreateGtmInviteLinkData = {
|
|
2270
|
+
body: CreateGtmInviteLinkRequest;
|
|
2271
|
+
path?: never;
|
|
2272
|
+
query?: never;
|
|
2273
|
+
url: '/gtm-invite/links';
|
|
2274
|
+
};
|
|
2275
|
+
export type CreateGtmInviteLinkErrors = {
|
|
2276
|
+
400: ErrorResponse;
|
|
2277
|
+
401: ErrorResponse;
|
|
2278
|
+
403: ErrorResponse;
|
|
2279
|
+
500: ErrorResponse;
|
|
2280
|
+
};
|
|
2281
|
+
export type CreateGtmInviteLinkError = CreateGtmInviteLinkErrors[keyof CreateGtmInviteLinkErrors];
|
|
2282
|
+
export type CreateGtmInviteLinkResponses = {
|
|
2283
|
+
200: GtmInviteLink;
|
|
2284
|
+
};
|
|
2285
|
+
export type CreateGtmInviteLinkResponse = CreateGtmInviteLinkResponses[keyof CreateGtmInviteLinkResponses];
|
|
2286
|
+
export type RevokeGtmInviteLinkData = {
|
|
2287
|
+
body?: never;
|
|
2288
|
+
path: {
|
|
2289
|
+
/**
|
|
2290
|
+
* The invite link id
|
|
2291
|
+
*/
|
|
2292
|
+
id: string;
|
|
2293
|
+
};
|
|
2294
|
+
query?: never;
|
|
2295
|
+
url: '/gtm-invite/links/{id}';
|
|
2296
|
+
};
|
|
2297
|
+
export type RevokeGtmInviteLinkErrors = {
|
|
2298
|
+
400: ErrorResponse;
|
|
2299
|
+
401: ErrorResponse;
|
|
2300
|
+
403: ErrorResponse;
|
|
2301
|
+
404: ErrorResponse;
|
|
2302
|
+
500: ErrorResponse;
|
|
2303
|
+
};
|
|
2304
|
+
export type RevokeGtmInviteLinkError = RevokeGtmInviteLinkErrors[keyof RevokeGtmInviteLinkErrors];
|
|
2305
|
+
export type RevokeGtmInviteLinkResponses = {
|
|
2306
|
+
200: GtmInviteLink;
|
|
2307
|
+
};
|
|
2308
|
+
export type RevokeGtmInviteLinkResponse = RevokeGtmInviteLinkResponses[keyof RevokeGtmInviteLinkResponses];
|
|
2309
|
+
export type GetGtmInviteOfferData = {
|
|
2310
|
+
body?: never;
|
|
2311
|
+
path?: never;
|
|
2312
|
+
query?: never;
|
|
2313
|
+
url: '/gtm-invite/offer';
|
|
2314
|
+
};
|
|
2315
|
+
export type GetGtmInviteOfferErrors = {
|
|
2316
|
+
401: ErrorResponse;
|
|
2317
|
+
500: ErrorResponse;
|
|
2318
|
+
};
|
|
2319
|
+
export type GetGtmInviteOfferError = GetGtmInviteOfferErrors[keyof GetGtmInviteOfferErrors];
|
|
2320
|
+
export type GetGtmInviteOfferResponses = {
|
|
2321
|
+
200: GtmInviteOfferStatus;
|
|
2322
|
+
};
|
|
2323
|
+
export type GetGtmInviteOfferResponse = GetGtmInviteOfferResponses[keyof GetGtmInviteOfferResponses];
|
|
2324
|
+
export type ResolveGtmInviteLinkData = {
|
|
2325
|
+
body?: never;
|
|
2326
|
+
path: {
|
|
2327
|
+
/**
|
|
2328
|
+
* The token from the invite link URL
|
|
2329
|
+
*/
|
|
2330
|
+
token: string;
|
|
2331
|
+
};
|
|
2332
|
+
query?: never;
|
|
2333
|
+
url: '/gtm-invite/public/{token}';
|
|
2334
|
+
};
|
|
2335
|
+
export type ResolveGtmInviteLinkErrors = {
|
|
2336
|
+
400: ErrorResponse;
|
|
2337
|
+
404: ErrorResponse;
|
|
2338
|
+
429: unknown;
|
|
2339
|
+
500: ErrorResponse;
|
|
2340
|
+
};
|
|
2341
|
+
export type ResolveGtmInviteLinkError = ResolveGtmInviteLinkErrors[keyof ResolveGtmInviteLinkErrors];
|
|
2342
|
+
export type ResolveGtmInviteLinkResponses = {
|
|
2343
|
+
200: PublicGtmInviteLink;
|
|
2344
|
+
};
|
|
2345
|
+
export type ResolveGtmInviteLinkResponse = ResolveGtmInviteLinkResponses[keyof ResolveGtmInviteLinkResponses];
|
|
2346
|
+
export type RedeemGtmInviteLinkData = {
|
|
2347
|
+
body: RedeemGtmInviteLinkRequest;
|
|
2348
|
+
path?: never;
|
|
2349
|
+
query?: never;
|
|
2350
|
+
url: '/gtm-invite/redeem';
|
|
2351
|
+
};
|
|
2352
|
+
export type RedeemGtmInviteLinkErrors = {
|
|
2353
|
+
400: ErrorResponse;
|
|
2354
|
+
401: ErrorResponse;
|
|
2355
|
+
404: ErrorResponse;
|
|
2356
|
+
409: ErrorResponse;
|
|
2357
|
+
410: ErrorResponse;
|
|
2358
|
+
500: ErrorResponse;
|
|
2359
|
+
};
|
|
2360
|
+
export type RedeemGtmInviteLinkError = RedeemGtmInviteLinkErrors[keyof RedeemGtmInviteLinkErrors];
|
|
2361
|
+
export type RedeemGtmInviteLinkResponses = {
|
|
2362
|
+
200: GtmInviteOffer;
|
|
2363
|
+
};
|
|
2364
|
+
export type RedeemGtmInviteLinkResponse = RedeemGtmInviteLinkResponses[keyof RedeemGtmInviteLinkResponses];
|
|
1111
2365
|
export type HealthHandlerData = {
|
|
1112
2366
|
body?: never;
|
|
1113
2367
|
path?: never;
|
|
@@ -1178,6 +2432,16 @@ export type CreateInProgressLinkResponses = {
|
|
|
1178
2432
|
200: CreateInProgressLinkResponse;
|
|
1179
2433
|
};
|
|
1180
2434
|
export type CreateInProgressLinkResponse2 = CreateInProgressLinkResponses[keyof CreateInProgressLinkResponses];
|
|
2435
|
+
export type EmailConnectionProvidersData = {
|
|
2436
|
+
body?: never;
|
|
2437
|
+
path?: never;
|
|
2438
|
+
query?: never;
|
|
2439
|
+
url: '/link/email/providers';
|
|
2440
|
+
};
|
|
2441
|
+
export type EmailConnectionProvidersResponses = {
|
|
2442
|
+
200: EmailConnectionProviders;
|
|
2443
|
+
};
|
|
2444
|
+
export type EmailConnectionProvidersResponse = EmailConnectionProvidersResponses[keyof EmailConnectionProvidersResponses];
|
|
1181
2445
|
export type DeleteGithubLinkData = {
|
|
1182
2446
|
body?: never;
|
|
1183
2447
|
path?: never;
|
|
@@ -1241,6 +2505,10 @@ export type InitGmailLinkData = {
|
|
|
1241
2505
|
* **OPTIONAL**. The original url to redirect to.
|
|
1242
2506
|
*/
|
|
1243
2507
|
original_url: string;
|
|
2508
|
+
/**
|
|
2509
|
+
* Existing accessible Gmail inbox being reconnected; does not consume an additional inbox slot.
|
|
2510
|
+
*/
|
|
2511
|
+
reconnect_link_id?: string;
|
|
1244
2512
|
/**
|
|
1245
2513
|
* **OPTIONAL**. Which capabilities to request consent for: `gmail` (default), `gmail_and_calendar`, or `calendar`. The calendar variants are only honored when the deployment allows calendar scope requests.
|
|
1246
2514
|
*/
|
|
@@ -1285,12 +2553,21 @@ export type InitOutlookLinkData = {
|
|
|
1285
2553
|
* **OPTIONAL**. The original URL to redirect to.
|
|
1286
2554
|
*/
|
|
1287
2555
|
original_url?: string;
|
|
2556
|
+
/**
|
|
2557
|
+
* mail (default) or mail_and_calendar. Calendar requests obey the deployment calendar consent switch.
|
|
2558
|
+
*/
|
|
2559
|
+
scopes?: string;
|
|
2560
|
+
/**
|
|
2561
|
+
* Existing accessible inbox being reconnected or granted calendar consent.
|
|
2562
|
+
*/
|
|
2563
|
+
reconnect_link_id?: string;
|
|
1288
2564
|
};
|
|
1289
2565
|
url: '/link/outlook';
|
|
1290
2566
|
};
|
|
1291
2567
|
export type InitOutlookLinkErrors = {
|
|
1292
2568
|
400: ErrorResponse;
|
|
1293
2569
|
401: ErrorResponse;
|
|
2570
|
+
402: ErrorResponse;
|
|
1294
2571
|
404: ErrorResponse;
|
|
1295
2572
|
429: ErrorResponse;
|
|
1296
2573
|
500: ErrorResponse;
|
|
@@ -1802,6 +3079,32 @@ export type JoinTeamError = JoinTeamErrors[keyof JoinTeamErrors];
|
|
|
1802
3079
|
export type JoinTeamResponses = {
|
|
1803
3080
|
200: unknown;
|
|
1804
3081
|
};
|
|
3082
|
+
export type PatchTeamMemberPlanData = {
|
|
3083
|
+
body: PatchTeamMemberPlanRequest;
|
|
3084
|
+
path: {
|
|
3085
|
+
/**
|
|
3086
|
+
* The member whose seat plan changes
|
|
3087
|
+
*/
|
|
3088
|
+
member_user_id: string;
|
|
3089
|
+
};
|
|
3090
|
+
query?: never;
|
|
3091
|
+
url: '/team/members/{member_user_id}/plan';
|
|
3092
|
+
};
|
|
3093
|
+
export type PatchTeamMemberPlanErrors = {
|
|
3094
|
+
400: ErrorResponse;
|
|
3095
|
+
401: ErrorResponse;
|
|
3096
|
+
/**
|
|
3097
|
+
* The team has no active subscription
|
|
3098
|
+
*/
|
|
3099
|
+
402: ErrorResponse;
|
|
3100
|
+
404: ErrorResponse;
|
|
3101
|
+
500: ErrorResponse;
|
|
3102
|
+
};
|
|
3103
|
+
export type PatchTeamMemberPlanError = PatchTeamMemberPlanErrors[keyof PatchTeamMemberPlanErrors];
|
|
3104
|
+
export type PatchTeamMemberPlanResponses = {
|
|
3105
|
+
200: TeamMember;
|
|
3106
|
+
};
|
|
3107
|
+
export type PatchTeamMemberPlanResponse = PatchTeamMemberPlanResponses[keyof PatchTeamMemberPlanResponses];
|
|
1805
3108
|
export type ToggleTeamNonAdminInvitesData = {
|
|
1806
3109
|
body?: never;
|
|
1807
3110
|
path?: never;
|
|
@@ -1871,21 +3174,6 @@ export type GetUserInvitesResponses = {
|
|
|
1871
3174
|
200: TeamInvitesResponse;
|
|
1872
3175
|
};
|
|
1873
3176
|
export type GetUserInvitesResponse = GetUserInvitesResponses[keyof GetUserInvitesResponses];
|
|
1874
|
-
export type CreateUserData = {
|
|
1875
|
-
body: CreateUserRequest;
|
|
1876
|
-
path?: never;
|
|
1877
|
-
query?: never;
|
|
1878
|
-
url: '/user';
|
|
1879
|
-
};
|
|
1880
|
-
export type CreateUserErrors = {
|
|
1881
|
-
400: ErrorResponse;
|
|
1882
|
-
500: ErrorResponse;
|
|
1883
|
-
};
|
|
1884
|
-
export type CreateUserError = CreateUserErrors[keyof CreateUserErrors];
|
|
1885
|
-
export type CreateUserResponses = {
|
|
1886
|
-
200: EmptyResponse;
|
|
1887
|
-
};
|
|
1888
|
-
export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
|
|
1889
3177
|
export type GetUserNamesData = {
|
|
1890
3178
|
body: PostGetNamesRequestBody;
|
|
1891
3179
|
path?: never;
|
|
@@ -2139,9 +3427,62 @@ export type CreateCheckoutSessionV2Errors = {
|
|
|
2139
3427
|
};
|
|
2140
3428
|
export type CreateCheckoutSessionV2Error = CreateCheckoutSessionV2Errors[keyof CreateCheckoutSessionV2Errors];
|
|
2141
3429
|
export type CreateCheckoutSessionV2Responses = {
|
|
2142
|
-
200:
|
|
3430
|
+
200: CheckoutSessionV2Response;
|
|
2143
3431
|
};
|
|
2144
3432
|
export type CreateCheckoutSessionV2Response = CreateCheckoutSessionV2Responses[keyof CreateCheckoutSessionV2Responses];
|
|
3433
|
+
export type GetSubscriptionStatusData = {
|
|
3434
|
+
body?: never;
|
|
3435
|
+
path?: never;
|
|
3436
|
+
query?: never;
|
|
3437
|
+
url: '/user/stripe/plan';
|
|
3438
|
+
};
|
|
3439
|
+
export type GetSubscriptionStatusErrors = {
|
|
3440
|
+
401: ErrorResponse;
|
|
3441
|
+
/**
|
|
3442
|
+
* More than one active subscription
|
|
3443
|
+
*/
|
|
3444
|
+
409: ErrorResponse;
|
|
3445
|
+
500: ErrorResponse;
|
|
3446
|
+
};
|
|
3447
|
+
export type GetSubscriptionStatusError = GetSubscriptionStatusErrors[keyof GetSubscriptionStatusErrors];
|
|
3448
|
+
export type GetSubscriptionStatusResponses = {
|
|
3449
|
+
200: SubscriptionStatus;
|
|
3450
|
+
};
|
|
3451
|
+
export type GetSubscriptionStatusResponse = GetSubscriptionStatusResponses[keyof GetSubscriptionStatusResponses];
|
|
3452
|
+
export type ChangePlanData = {
|
|
3453
|
+
body: ChangePlanRequest;
|
|
3454
|
+
path?: never;
|
|
3455
|
+
query?: never;
|
|
3456
|
+
url: '/user/stripe/plan';
|
|
3457
|
+
};
|
|
3458
|
+
export type ChangePlanErrors = {
|
|
3459
|
+
/**
|
|
3460
|
+
* Plan not available
|
|
3461
|
+
*/
|
|
3462
|
+
400: ErrorResponse;
|
|
3463
|
+
/**
|
|
3464
|
+
* The team has no active subscription
|
|
3465
|
+
*/
|
|
3466
|
+
402: ErrorResponse;
|
|
3467
|
+
/**
|
|
3468
|
+
* Only team admins change plans on a team
|
|
3469
|
+
*/
|
|
3470
|
+
403: ErrorResponse;
|
|
3471
|
+
/**
|
|
3472
|
+
* No active subscription
|
|
3473
|
+
*/
|
|
3474
|
+
404: ErrorResponse;
|
|
3475
|
+
/**
|
|
3476
|
+
* More than one active subscription
|
|
3477
|
+
*/
|
|
3478
|
+
409: ErrorResponse;
|
|
3479
|
+
500: ErrorResponse;
|
|
3480
|
+
};
|
|
3481
|
+
export type ChangePlanError = ChangePlanErrors[keyof ChangePlanErrors];
|
|
3482
|
+
export type ChangePlanResponses = {
|
|
3483
|
+
200: ChangePlanResponse;
|
|
3484
|
+
};
|
|
3485
|
+
export type ChangePlanResponse2 = ChangePlanResponses[keyof ChangePlanResponses];
|
|
2145
3486
|
export type CreatePortalSessionData = {
|
|
2146
3487
|
body: CreatePortalSessionRequest;
|
|
2147
3488
|
path?: never;
|
|
@@ -2157,6 +3498,22 @@ export type CreatePortalSessionResponses = {
|
|
|
2157
3498
|
200: StripeSessionResponse;
|
|
2158
3499
|
};
|
|
2159
3500
|
export type CreatePortalSessionResponse = CreatePortalSessionResponses[keyof CreatePortalSessionResponses];
|
|
3501
|
+
export type GetTrialEligibilityData = {
|
|
3502
|
+
body?: never;
|
|
3503
|
+
path?: never;
|
|
3504
|
+
query?: never;
|
|
3505
|
+
url: '/user/stripe/trial_eligibility';
|
|
3506
|
+
};
|
|
3507
|
+
export type GetTrialEligibilityErrors = {
|
|
3508
|
+
400: ErrorResponse;
|
|
3509
|
+
401: ErrorResponse;
|
|
3510
|
+
500: ErrorResponse;
|
|
3511
|
+
};
|
|
3512
|
+
export type GetTrialEligibilityError = GetTrialEligibilityErrors[keyof GetTrialEligibilityErrors];
|
|
3513
|
+
export type GetTrialEligibilityResponses = {
|
|
3514
|
+
200: TrialEligibility;
|
|
3515
|
+
};
|
|
3516
|
+
export type GetTrialEligibilityResponse = GetTrialEligibilityResponses[keyof GetTrialEligibilityResponses];
|
|
2160
3517
|
export type PatchUserTutorialData = {
|
|
2161
3518
|
body: PatchUserTutorialRequest;
|
|
2162
3519
|
path?: never;
|