shoal-web-sdk 0.0.132 → 0.0.134
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/dist/sdk/@tanstack/react-query.gen.d.ts +1 -5
- package/dist/sdk/@tanstack/react-query.gen.js +1 -17
- package/dist/sdk/sdk.gen.d.ts +1 -5
- package/dist/sdk/sdk.gen.js +0 -19
- package/dist/sdk/types.gen.d.ts +3 -52
- package/dist/sdk/zod.gen.d.ts +59 -52
- package/dist/sdk/zod.gen.js +6 -22
- package/dist/tanstack-codegen/generated/generated.d.ts +1 -6
- package/dist/tanstack-codegen/generated/generated.js +1 -20
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type InfiniteData, type UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import { type Options } from '../sdk.gen';
|
|
3
|
-
import type {
|
|
3
|
+
import type { CreateEnvironmentData, CreateEnvironmentError, CreateEnvironmentResponse, CreateProjectData, CreateProjectError, CreateProjectResponse, CreateSetupIntentData, CreateSetupIntentError, CreateSetupIntentResponse, CreateSpaceData, CreateSpaceError, CreateSpaceInviteData, CreateSpaceInviteError, CreateSpaceInviteResponse, CreateSpaceResponse, CreateUsernameData, CreateUsernameError, DeleteAccountIdentityData, DeleteAccountIdentityError, DeleteAccountIdentityResponse, DeployVersionData, DeployVersionError, FetchBillingPricesData, FetchGraphM2mData, FetchKindeOrganisationBillingAgreementsData, FetchNodeM2mData, GetBillingPlanData, GetBillingUsageData, GetConnectedAppUrlData, GetEnvironmentOverviewData, GetGraphOverviewData, GetProjectOverviewData, GetServiceHealthData, GetSpaceInvitesData, GetSpaceOrgCodeData, GetSpaceOverviewData, GetUserIdentitiesData, GetUserInvitesData, GetUserProfileData, JoinSpaceData, JoinSpaceError, LeaveSpaceData, LeaveSpaceError, ListBillingInvoicesData, ListInstallationBranchesData, ListInstallationRepositoriesData, ListPaymentMethodsData, ListSpaceMemberRolesData, ListSpaceMembersData, ListUserInstallationsData, ListUserSpacesData, RecordCloudUsageData, RecordCloudUsageError, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsError, RejectSpaceInviteData, RejectSpaceInviteError, RejectSpaceInviteResponse, RemovePaymentMethodData, RemovePaymentMethodError, RemovePaymentMethodResponse, RequestAccountPasswordResetData, RequestAccountPasswordResetError, RequestSignedUploadUrlData, RequestSignedUploadUrlError, RequestSignedUploadUrlResponse, RevokeSpaceInviteData, RevokeSpaceInviteError, RevokeSpaceInviteResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodError, SetDefaultPaymentMethodResponse, UpdateBillingPlanData, UpdateBillingPlanError, UpdateConnectedAppTokenData, UpdateConnectedAppTokenError, UpdateGraphM2mData, UpdateGraphM2mError, UpdateGraphStateData, UpdateGraphStateError, UpdateUsernameData, UpdateUsernameError, UpdateUserProfileData, UpdateUserProfileError, VersionStatusData } from '../types.gen';
|
|
4
4
|
export type QueryKey<TOptions extends Options> = [
|
|
5
5
|
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
6
6
|
_id: string;
|
|
@@ -412,10 +412,6 @@ export declare const listUserSpacesInfiniteOptions: (options?: Options<ListUserS
|
|
|
412
412
|
[dataTagErrorSymbol]: import("../types.gen").ErrorResponse;
|
|
413
413
|
};
|
|
414
414
|
};
|
|
415
|
-
/**
|
|
416
|
-
* Create a default onboarding workspace, project, and main environment.
|
|
417
|
-
*/
|
|
418
|
-
export declare const bootstrapOnboardingWorkspaceMutation: (options?: Partial<Options<BootstrapOnboardingWorkspaceData>>) => UseMutationOptions<BootstrapOnboardingWorkspaceResponse2, BootstrapOnboardingWorkspaceError, Options<BootstrapOnboardingWorkspaceData>>;
|
|
419
415
|
/**
|
|
420
416
|
* Record analytics data captured during the onboarding flow.
|
|
421
417
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
3
|
import { client } from '../client.gen';
|
|
4
|
-
import {
|
|
4
|
+
import { createEnvironment, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchNodeM2M, getBillingPlan, getBillingUsage, getConnectedAppUrl, getEnvironmentOverview, getGraphOverview, getProjectOverview, getServiceHealth, getSpaceInvites, getSpaceOrgCode, getSpaceOverview, getUserIdentities, getUserInvites, getUserProfile, joinSpace, leaveSpace, listBillingInvoices, listInstallationBranches, listInstallationRepositories, listPaymentMethods, listSpaceMemberRoles, listSpaceMembers, listUserInstallations, listUserSpaces, recordCloudUsage, recordOnboardingAnalytics, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateGraphM2M, updateGraphState, updateUsername, updateUserProfile, versionStatus } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
6
|
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
7
7
|
if (infinite) {
|
|
@@ -456,22 +456,6 @@ export const listUserSpacesInfiniteOptions = (options) => {
|
|
|
456
456
|
queryKey: listUserSpacesInfiniteQueryKey(options)
|
|
457
457
|
});
|
|
458
458
|
};
|
|
459
|
-
/**
|
|
460
|
-
* Create a default onboarding workspace, project, and main environment.
|
|
461
|
-
*/
|
|
462
|
-
export const bootstrapOnboardingWorkspaceMutation = (options) => {
|
|
463
|
-
const mutationOptions = {
|
|
464
|
-
mutationFn: async (fnOptions) => {
|
|
465
|
-
const { data } = await bootstrapOnboardingWorkspace({
|
|
466
|
-
...options,
|
|
467
|
-
...fnOptions,
|
|
468
|
-
throwOnError: true
|
|
469
|
-
});
|
|
470
|
-
return data;
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
return mutationOptions;
|
|
474
|
-
};
|
|
475
459
|
/**
|
|
476
460
|
* Record analytics data captured during the onboarding flow.
|
|
477
461
|
*/
|
package/dist/sdk/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CreateEnvironmentData, CreateEnvironmentErrors, CreateEnvironmentResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateSetupIntentData, CreateSetupIntentErrors, CreateSetupIntentResponses, CreateSpaceData, CreateSpaceErrors, CreateSpaceInviteData, CreateSpaceInviteErrors, CreateSpaceInviteResponses, CreateSpaceResponses, CreateUsernameData, CreateUsernameErrors, CreateUsernameResponses, DeleteAccountIdentityData, DeleteAccountIdentityErrors, DeleteAccountIdentityResponses, DeployVersionData, DeployVersionErrors, DeployVersionResponses, FetchBillingPricesData, FetchBillingPricesErrors, FetchBillingPricesResponses, FetchGraphM2mData, FetchGraphM2mErrors, FetchGraphM2mResponses, FetchKindeOrganisationBillingAgreementsData, FetchKindeOrganisationBillingAgreementsErrors, FetchKindeOrganisationBillingAgreementsResponses, FetchNodeM2mData, FetchNodeM2mErrors, FetchNodeM2mResponses, GetBillingPlanData, GetBillingPlanErrors, GetBillingPlanResponses, GetBillingUsageData, GetBillingUsageErrors, GetBillingUsageResponses, GetConnectedAppUrlData, GetConnectedAppUrlErrors, GetConnectedAppUrlResponses, GetEnvironmentOverviewData, GetEnvironmentOverviewErrors, GetEnvironmentOverviewResponses, GetGraphOverviewData, GetGraphOverviewErrors, GetGraphOverviewResponses, GetProjectOverviewData, GetProjectOverviewErrors, GetProjectOverviewResponses, GetServiceHealthData, GetServiceHealthResponses, GetSpaceInvitesData, GetSpaceInvitesErrors, GetSpaceInvitesResponses, GetSpaceOrgCodeData, GetSpaceOrgCodeErrors, GetSpaceOrgCodeResponses, GetSpaceOverviewData, GetSpaceOverviewErrors, GetSpaceOverviewResponses, GetUserIdentitiesData, GetUserIdentitiesErrors, GetUserIdentitiesResponses, GetUserInvitesData, GetUserInvitesErrors, GetUserInvitesResponses, GetUserProfileData, GetUserProfileErrors, GetUserProfileResponses, JoinSpaceData, JoinSpaceErrors, JoinSpaceResponses, LeaveSpaceData, LeaveSpaceErrors, LeaveSpaceResponses, ListBillingInvoicesData, ListBillingInvoicesErrors, ListBillingInvoicesResponses, ListInstallationBranchesData, ListInstallationBranchesErrors, ListInstallationBranchesResponses, ListInstallationRepositoriesData, ListInstallationRepositoriesErrors, ListInstallationRepositoriesResponses, ListPaymentMethodsData, ListPaymentMethodsErrors, ListPaymentMethodsResponses, ListSpaceMemberRolesData, ListSpaceMemberRolesErrors, ListSpaceMemberRolesResponses, ListSpaceMembersData, ListSpaceMembersErrors, ListSpaceMembersResponses, ListUserInstallationsData, ListUserInstallationsErrors, ListUserInstallationsResponses, ListUserSpacesData, ListUserSpacesErrors, ListUserSpacesResponses, RecordCloudUsageData, RecordCloudUsageErrors, RecordCloudUsageResponses, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsErrors, RecordOnboardingAnalyticsResponses, RejectSpaceInviteData, RejectSpaceInviteErrors, RejectSpaceInviteResponses, RemovePaymentMethodData, RemovePaymentMethodErrors, RemovePaymentMethodResponses, RequestAccountPasswordResetData, RequestAccountPasswordResetErrors, RequestAccountPasswordResetResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlErrors, RequestSignedUploadUrlResponses, RevokeSpaceInviteData, RevokeSpaceInviteErrors, RevokeSpaceInviteResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodErrors, SetDefaultPaymentMethodResponses, UpdateBillingPlanData, UpdateBillingPlanErrors, UpdateBillingPlanResponses, UpdateConnectedAppTokenData, UpdateConnectedAppTokenErrors, UpdateConnectedAppTokenResponses, UpdateGraphM2mData, UpdateGraphM2mErrors, UpdateGraphM2mResponses, UpdateGraphStateData, UpdateGraphStateErrors, UpdateGraphStateResponses, UpdateUsernameData, UpdateUsernameErrors, UpdateUsernameResponses, UpdateUserProfileData, UpdateUserProfileErrors, UpdateUserProfileResponses, VersionStatusData, VersionStatusErrors, VersionStatusResponses } from './types.gen';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -81,10 +81,6 @@ export declare const listUserInstallations: <ThrowOnError extends boolean = fals
|
|
|
81
81
|
* List spaces for the authenticated user with organization details.
|
|
82
82
|
*/
|
|
83
83
|
export declare const listUserSpaces: <ThrowOnError extends boolean = false>(options?: Options<ListUserSpacesData, ThrowOnError>) => import("./client").RequestResult<ListUserSpacesResponses, ListUserSpacesErrors, ThrowOnError, "fields">;
|
|
84
|
-
/**
|
|
85
|
-
* Create a default onboarding workspace, project, and main environment.
|
|
86
|
-
*/
|
|
87
|
-
export declare const bootstrapOnboardingWorkspace: <ThrowOnError extends boolean = false>(options: Options<BootstrapOnboardingWorkspaceData, ThrowOnError>) => import("./client").RequestResult<BootstrapOnboardingWorkspaceResponses, BootstrapOnboardingWorkspaceErrors, ThrowOnError, "fields">;
|
|
88
84
|
/**
|
|
89
85
|
* Record analytics data captured during the onboarding flow.
|
|
90
86
|
*/
|
package/dist/sdk/sdk.gen.js
CHANGED
|
@@ -271,25 +271,6 @@ export const listUserSpaces = (options) => {
|
|
|
271
271
|
...options
|
|
272
272
|
});
|
|
273
273
|
};
|
|
274
|
-
/**
|
|
275
|
-
* Create a default onboarding workspace, project, and main environment.
|
|
276
|
-
*/
|
|
277
|
-
export const bootstrapOnboardingWorkspace = (options) => {
|
|
278
|
-
return (options.client ?? client).post({
|
|
279
|
-
security: [
|
|
280
|
-
{
|
|
281
|
-
scheme: 'bearer',
|
|
282
|
-
type: 'http'
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
url: '/auth/onboarding/bootstrap-workspace',
|
|
286
|
-
...options,
|
|
287
|
-
headers: {
|
|
288
|
-
'Content-Type': 'application/json',
|
|
289
|
-
...options.headers
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
274
|
/**
|
|
294
275
|
* Record analytics data captured during the onboarding flow.
|
|
295
276
|
*/
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -77,22 +77,6 @@ export type OnboardingAnalytics = {
|
|
|
77
77
|
*/
|
|
78
78
|
referralSource?: string;
|
|
79
79
|
};
|
|
80
|
-
export type BootstrapOnboardingWorkspace = {
|
|
81
|
-
/**
|
|
82
|
-
* Seed value used to derive default onboarding names and handles.
|
|
83
|
-
*/
|
|
84
|
-
seed: string;
|
|
85
|
-
};
|
|
86
|
-
export type OnboardingBootstrapResource = {
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
handle: string;
|
|
90
|
-
};
|
|
91
|
-
export type BootstrapOnboardingWorkspaceResponse = {
|
|
92
|
-
space: OnboardingBootstrapResource;
|
|
93
|
-
project: OnboardingBootstrapResource;
|
|
94
|
-
environment: OnboardingBootstrapResource;
|
|
95
|
-
};
|
|
96
80
|
export type SpaceOverview = {
|
|
97
81
|
id: string;
|
|
98
82
|
name: string;
|
|
@@ -102,11 +86,14 @@ export type SpaceOverview = {
|
|
|
102
86
|
export type SpaceOrgCodeResponse = {
|
|
103
87
|
orgCode: string;
|
|
104
88
|
};
|
|
89
|
+
export type EnvironmentStatus = 'idle' | 'deploying';
|
|
105
90
|
export type EnvironmentOverview = {
|
|
106
91
|
id: string;
|
|
107
92
|
name: string;
|
|
108
93
|
handle: string;
|
|
109
94
|
description: string;
|
|
95
|
+
deployingVersionID?: string;
|
|
96
|
+
status: EnvironmentStatus;
|
|
110
97
|
createdAt: string;
|
|
111
98
|
updatedAt: string;
|
|
112
99
|
versions: number;
|
|
@@ -1224,42 +1211,6 @@ export type ListUserSpacesResponses = {
|
|
|
1224
1211
|
200: UserSpacesResponse;
|
|
1225
1212
|
};
|
|
1226
1213
|
export type ListUserSpacesResponse = ListUserSpacesResponses[keyof ListUserSpacesResponses];
|
|
1227
|
-
export type BootstrapOnboardingWorkspaceData = {
|
|
1228
|
-
body: BootstrapOnboardingWorkspace;
|
|
1229
|
-
path?: never;
|
|
1230
|
-
query?: never;
|
|
1231
|
-
url: '/auth/onboarding/bootstrap-workspace';
|
|
1232
|
-
};
|
|
1233
|
-
export type BootstrapOnboardingWorkspaceErrors = {
|
|
1234
|
-
/**
|
|
1235
|
-
* Bad request.
|
|
1236
|
-
*/
|
|
1237
|
-
400: ErrorResponse;
|
|
1238
|
-
/**
|
|
1239
|
-
* Unauthorised user.
|
|
1240
|
-
*/
|
|
1241
|
-
401: ErrorResponse;
|
|
1242
|
-
/**
|
|
1243
|
-
* Invalid credentials.
|
|
1244
|
-
*/
|
|
1245
|
-
403: ErrorResponse;
|
|
1246
|
-
/**
|
|
1247
|
-
* Related content not found.
|
|
1248
|
-
*/
|
|
1249
|
-
404: ErrorResponse;
|
|
1250
|
-
/**
|
|
1251
|
-
* Unexpected error.
|
|
1252
|
-
*/
|
|
1253
|
-
500: ErrorResponse;
|
|
1254
|
-
};
|
|
1255
|
-
export type BootstrapOnboardingWorkspaceError = BootstrapOnboardingWorkspaceErrors[keyof BootstrapOnboardingWorkspaceErrors];
|
|
1256
|
-
export type BootstrapOnboardingWorkspaceResponses = {
|
|
1257
|
-
/**
|
|
1258
|
-
* Successfully bootstrapped onboarding resources.
|
|
1259
|
-
*/
|
|
1260
|
-
201: BootstrapOnboardingWorkspaceResponse;
|
|
1261
|
-
};
|
|
1262
|
-
export type BootstrapOnboardingWorkspaceResponse2 = BootstrapOnboardingWorkspaceResponses[keyof BootstrapOnboardingWorkspaceResponses];
|
|
1263
1214
|
export type RecordOnboardingAnalyticsData = {
|
|
1264
1215
|
body: OnboardingAnalytics;
|
|
1265
1216
|
path?: never;
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -120,39 +120,23 @@ export declare const zOnboardingAnalytics: z.ZodObject<{
|
|
|
120
120
|
companySize: z.ZodOptional<z.ZodString>;
|
|
121
121
|
referralSource: z.ZodOptional<z.ZodString>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
|
-
export declare const zBootstrapOnboardingWorkspace: z.ZodObject<{
|
|
124
|
-
seed: z.ZodString;
|
|
125
|
-
}, z.core.$strip>;
|
|
126
|
-
export declare const zOnboardingBootstrapResource: z.ZodObject<{
|
|
127
|
-
id: z.ZodString;
|
|
128
|
-
name: z.ZodString;
|
|
129
|
-
handle: z.ZodString;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
|
-
export declare const zBootstrapOnboardingWorkspaceResponse: z.ZodObject<{
|
|
132
|
-
space: z.ZodObject<{
|
|
133
|
-
id: z.ZodString;
|
|
134
|
-
name: z.ZodString;
|
|
135
|
-
handle: z.ZodString;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
project: z.ZodObject<{
|
|
138
|
-
id: z.ZodString;
|
|
139
|
-
name: z.ZodString;
|
|
140
|
-
handle: z.ZodString;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
environment: z.ZodObject<{
|
|
143
|
-
id: z.ZodString;
|
|
144
|
-
name: z.ZodString;
|
|
145
|
-
handle: z.ZodString;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
}, z.core.$strip>;
|
|
148
123
|
export declare const zSpaceOrgCodeResponse: z.ZodObject<{
|
|
149
124
|
orgCode: z.ZodString;
|
|
150
125
|
}, z.core.$strip>;
|
|
126
|
+
export declare const zEnvironmentStatus: z.ZodEnum<{
|
|
127
|
+
deploying: "deploying";
|
|
128
|
+
idle: "idle";
|
|
129
|
+
}>;
|
|
151
130
|
export declare const zEnvironmentOverview: z.ZodObject<{
|
|
152
131
|
id: z.ZodUUID;
|
|
153
132
|
name: z.ZodString;
|
|
154
133
|
handle: z.ZodString;
|
|
155
134
|
description: z.ZodString;
|
|
135
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
136
|
+
status: z.ZodEnum<{
|
|
137
|
+
deploying: "deploying";
|
|
138
|
+
idle: "idle";
|
|
139
|
+
}>;
|
|
156
140
|
createdAt: z.ZodISODateTime;
|
|
157
141
|
updatedAt: z.ZodISODateTime;
|
|
158
142
|
versions: z.ZodInt;
|
|
@@ -170,6 +154,11 @@ export declare const zProjectOverview: z.ZodObject<{
|
|
|
170
154
|
name: z.ZodString;
|
|
171
155
|
handle: z.ZodString;
|
|
172
156
|
description: z.ZodString;
|
|
157
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
158
|
+
status: z.ZodEnum<{
|
|
159
|
+
deploying: "deploying";
|
|
160
|
+
idle: "idle";
|
|
161
|
+
}>;
|
|
173
162
|
createdAt: z.ZodISODateTime;
|
|
174
163
|
updatedAt: z.ZodISODateTime;
|
|
175
164
|
versions: z.ZodInt;
|
|
@@ -192,6 +181,11 @@ export declare const zSpaceOverview: z.ZodObject<{
|
|
|
192
181
|
name: z.ZodString;
|
|
193
182
|
handle: z.ZodString;
|
|
194
183
|
description: z.ZodString;
|
|
184
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
185
|
+
status: z.ZodEnum<{
|
|
186
|
+
deploying: "deploying";
|
|
187
|
+
idle: "idle";
|
|
188
|
+
}>;
|
|
195
189
|
createdAt: z.ZodISODateTime;
|
|
196
190
|
updatedAt: z.ZodISODateTime;
|
|
197
191
|
versions: z.ZodInt;
|
|
@@ -406,6 +400,11 @@ export declare const zUserSpacesResponse: z.ZodObject<{
|
|
|
406
400
|
name: z.ZodString;
|
|
407
401
|
handle: z.ZodString;
|
|
408
402
|
description: z.ZodString;
|
|
403
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
404
|
+
status: z.ZodEnum<{
|
|
405
|
+
deploying: "deploying";
|
|
406
|
+
idle: "idle";
|
|
407
|
+
}>;
|
|
409
408
|
createdAt: z.ZodISODateTime;
|
|
410
409
|
updatedAt: z.ZodISODateTime;
|
|
411
410
|
versions: z.ZodInt;
|
|
@@ -2012,6 +2011,11 @@ export declare const zListUserSpacesResponse: z.ZodObject<{
|
|
|
2012
2011
|
name: z.ZodString;
|
|
2013
2012
|
handle: z.ZodString;
|
|
2014
2013
|
description: z.ZodString;
|
|
2014
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2015
|
+
status: z.ZodEnum<{
|
|
2016
|
+
deploying: "deploying";
|
|
2017
|
+
idle: "idle";
|
|
2018
|
+
}>;
|
|
2015
2019
|
createdAt: z.ZodISODateTime;
|
|
2016
2020
|
updatedAt: z.ZodISODateTime;
|
|
2017
2021
|
versions: z.ZodInt;
|
|
@@ -2020,33 +2024,6 @@ export declare const zListUserSpacesResponse: z.ZodObject<{
|
|
|
2020
2024
|
}, z.core.$strip>>;
|
|
2021
2025
|
next_page: z.ZodOptional<z.ZodInt>;
|
|
2022
2026
|
}, z.core.$strip>;
|
|
2023
|
-
export declare const zBootstrapOnboardingWorkspaceData: z.ZodObject<{
|
|
2024
|
-
body: z.ZodObject<{
|
|
2025
|
-
seed: z.ZodString;
|
|
2026
|
-
}, z.core.$strip>;
|
|
2027
|
-
path: z.ZodOptional<z.ZodNever>;
|
|
2028
|
-
query: z.ZodOptional<z.ZodNever>;
|
|
2029
|
-
}, z.core.$strip>;
|
|
2030
|
-
/**
|
|
2031
|
-
* Successfully bootstrapped onboarding resources.
|
|
2032
|
-
*/
|
|
2033
|
-
export declare const zBootstrapOnboardingWorkspaceResponse2: z.ZodObject<{
|
|
2034
|
-
space: z.ZodObject<{
|
|
2035
|
-
id: z.ZodString;
|
|
2036
|
-
name: z.ZodString;
|
|
2037
|
-
handle: z.ZodString;
|
|
2038
|
-
}, z.core.$strip>;
|
|
2039
|
-
project: z.ZodObject<{
|
|
2040
|
-
id: z.ZodString;
|
|
2041
|
-
name: z.ZodString;
|
|
2042
|
-
handle: z.ZodString;
|
|
2043
|
-
}, z.core.$strip>;
|
|
2044
|
-
environment: z.ZodObject<{
|
|
2045
|
-
id: z.ZodString;
|
|
2046
|
-
name: z.ZodString;
|
|
2047
|
-
handle: z.ZodString;
|
|
2048
|
-
}, z.core.$strip>;
|
|
2049
|
-
}, z.core.$strip>;
|
|
2050
2027
|
export declare const zRecordOnboardingAnalyticsData: z.ZodObject<{
|
|
2051
2028
|
body: z.ZodObject<{
|
|
2052
2029
|
occupation: z.ZodOptional<z.ZodString>;
|
|
@@ -2085,6 +2062,11 @@ export declare const zCreateSpaceResponse: z.ZodObject<{
|
|
|
2085
2062
|
name: z.ZodString;
|
|
2086
2063
|
handle: z.ZodString;
|
|
2087
2064
|
description: z.ZodString;
|
|
2065
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2066
|
+
status: z.ZodEnum<{
|
|
2067
|
+
deploying: "deploying";
|
|
2068
|
+
idle: "idle";
|
|
2069
|
+
}>;
|
|
2088
2070
|
createdAt: z.ZodISODateTime;
|
|
2089
2071
|
updatedAt: z.ZodISODateTime;
|
|
2090
2072
|
versions: z.ZodInt;
|
|
@@ -2163,6 +2145,11 @@ export declare const zGetSpaceOverviewResponse: z.ZodObject<{
|
|
|
2163
2145
|
name: z.ZodString;
|
|
2164
2146
|
handle: z.ZodString;
|
|
2165
2147
|
description: z.ZodString;
|
|
2148
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2149
|
+
status: z.ZodEnum<{
|
|
2150
|
+
deploying: "deploying";
|
|
2151
|
+
idle: "idle";
|
|
2152
|
+
}>;
|
|
2166
2153
|
createdAt: z.ZodISODateTime;
|
|
2167
2154
|
updatedAt: z.ZodISODateTime;
|
|
2168
2155
|
versions: z.ZodInt;
|
|
@@ -2333,6 +2320,11 @@ export declare const zCreateProjectResponse: z.ZodObject<{
|
|
|
2333
2320
|
name: z.ZodString;
|
|
2334
2321
|
handle: z.ZodString;
|
|
2335
2322
|
description: z.ZodString;
|
|
2323
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2324
|
+
status: z.ZodEnum<{
|
|
2325
|
+
deploying: "deploying";
|
|
2326
|
+
idle: "idle";
|
|
2327
|
+
}>;
|
|
2336
2328
|
createdAt: z.ZodISODateTime;
|
|
2337
2329
|
updatedAt: z.ZodISODateTime;
|
|
2338
2330
|
versions: z.ZodInt;
|
|
@@ -2362,6 +2354,11 @@ export declare const zGetProjectOverviewResponse: z.ZodObject<{
|
|
|
2362
2354
|
name: z.ZodString;
|
|
2363
2355
|
handle: z.ZodString;
|
|
2364
2356
|
description: z.ZodString;
|
|
2357
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2358
|
+
status: z.ZodEnum<{
|
|
2359
|
+
deploying: "deploying";
|
|
2360
|
+
idle: "idle";
|
|
2361
|
+
}>;
|
|
2365
2362
|
createdAt: z.ZodISODateTime;
|
|
2366
2363
|
updatedAt: z.ZodISODateTime;
|
|
2367
2364
|
versions: z.ZodInt;
|
|
@@ -2387,6 +2384,11 @@ export declare const zCreateEnvironmentResponse: z.ZodObject<{
|
|
|
2387
2384
|
name: z.ZodString;
|
|
2388
2385
|
handle: z.ZodString;
|
|
2389
2386
|
description: z.ZodString;
|
|
2387
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2388
|
+
status: z.ZodEnum<{
|
|
2389
|
+
deploying: "deploying";
|
|
2390
|
+
idle: "idle";
|
|
2391
|
+
}>;
|
|
2390
2392
|
createdAt: z.ZodISODateTime;
|
|
2391
2393
|
updatedAt: z.ZodISODateTime;
|
|
2392
2394
|
versions: z.ZodInt;
|
|
@@ -2408,6 +2410,11 @@ export declare const zGetEnvironmentOverviewResponse: z.ZodObject<{
|
|
|
2408
2410
|
name: z.ZodString;
|
|
2409
2411
|
handle: z.ZodString;
|
|
2410
2412
|
description: z.ZodString;
|
|
2413
|
+
deployingVersionID: z.ZodOptional<z.ZodUUID>;
|
|
2414
|
+
status: z.ZodEnum<{
|
|
2415
|
+
deploying: "deploying";
|
|
2416
|
+
idle: "idle";
|
|
2417
|
+
}>;
|
|
2411
2418
|
createdAt: z.ZodISODateTime;
|
|
2412
2419
|
updatedAt: z.ZodISODateTime;
|
|
2413
2420
|
versions: z.ZodInt;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -90,27 +90,20 @@ export const zOnboardingAnalytics = z.object({
|
|
|
90
90
|
companySize: z.optional(z.string()),
|
|
91
91
|
referralSource: z.optional(z.string())
|
|
92
92
|
});
|
|
93
|
-
export const zBootstrapOnboardingWorkspace = z.object({
|
|
94
|
-
seed: z.string()
|
|
95
|
-
});
|
|
96
|
-
export const zOnboardingBootstrapResource = z.object({
|
|
97
|
-
id: z.string(),
|
|
98
|
-
name: z.string(),
|
|
99
|
-
handle: z.string()
|
|
100
|
-
});
|
|
101
|
-
export const zBootstrapOnboardingWorkspaceResponse = z.object({
|
|
102
|
-
space: zOnboardingBootstrapResource,
|
|
103
|
-
project: zOnboardingBootstrapResource,
|
|
104
|
-
environment: zOnboardingBootstrapResource
|
|
105
|
-
});
|
|
106
93
|
export const zSpaceOrgCodeResponse = z.object({
|
|
107
94
|
orgCode: z.string()
|
|
108
95
|
});
|
|
96
|
+
export const zEnvironmentStatus = z.enum([
|
|
97
|
+
'idle',
|
|
98
|
+
'deploying'
|
|
99
|
+
]);
|
|
109
100
|
export const zEnvironmentOverview = z.object({
|
|
110
101
|
id: z.uuid(),
|
|
111
102
|
name: z.string(),
|
|
112
103
|
handle: z.string(),
|
|
113
104
|
description: z.string(),
|
|
105
|
+
deployingVersionID: z.optional(z.uuid()),
|
|
106
|
+
status: zEnvironmentStatus,
|
|
114
107
|
createdAt: z.iso.datetime(),
|
|
115
108
|
updatedAt: z.iso.datetime(),
|
|
116
109
|
versions: z.int()
|
|
@@ -798,15 +791,6 @@ export const zListUserSpacesData = z.object({
|
|
|
798
791
|
* A list of spaces for the authenticated user.
|
|
799
792
|
*/
|
|
800
793
|
export const zListUserSpacesResponse = zUserSpacesResponse;
|
|
801
|
-
export const zBootstrapOnboardingWorkspaceData = z.object({
|
|
802
|
-
body: zBootstrapOnboardingWorkspace,
|
|
803
|
-
path: z.optional(z.never()),
|
|
804
|
-
query: z.optional(z.never())
|
|
805
|
-
});
|
|
806
|
-
/**
|
|
807
|
-
* Successfully bootstrapped onboarding resources.
|
|
808
|
-
*/
|
|
809
|
-
export const zBootstrapOnboardingWorkspaceResponse2 = zBootstrapOnboardingWorkspaceResponse;
|
|
810
794
|
export const zRecordOnboardingAnalyticsData = z.object({
|
|
811
795
|
body: zOnboardingAnalytics,
|
|
812
796
|
path: z.optional(z.never()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from "@tanstack/react-query";
|
|
2
2
|
import { GetSuccessResponse } from "../util";
|
|
3
|
-
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData,
|
|
3
|
+
import { GetServiceHealthData, FetchGraphM2mData, UpdateGraphM2mData, UpdateGraphM2mResponses, FetchNodeM2mData, RequestAccountPasswordResetData, RequestAccountPasswordResetResponses, UpdateUsernameData, UpdateUsernameResponses, CreateUsernameData, CreateUsernameResponses, GetUserProfileData, UpdateUserProfileData, UpdateUserProfileResponses, GetUserIdentitiesData, DeleteAccountIdentityData, DeleteAccountIdentityResponses, GetConnectedAppUrlData, UpdateConnectedAppTokenData, UpdateConnectedAppTokenResponses, ListInstallationRepositoriesData, ListInstallationBranchesData, ListUserInstallationsData, ListUserSpacesData, RecordOnboardingAnalyticsData, RecordOnboardingAnalyticsResponses, CreateSpaceData, CreateSpaceResponses, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, VersionStatusData, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } from "../../sdk/types.gen";
|
|
4
4
|
export declare const useGetServiceHealth: (options?: Omit<GetServiceHealthData, "url"> & {
|
|
5
5
|
enabled?: boolean;
|
|
6
6
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").HealthResponse | undefined, Error>;
|
|
@@ -66,11 +66,6 @@ export declare const useListUserInstallations: (options?: Omit<ListUserInstallat
|
|
|
66
66
|
export declare const useListUserSpaces: (options?: Omit<ListUserSpacesData, "url"> & {
|
|
67
67
|
enabled?: boolean;
|
|
68
68
|
}) => import("@tanstack/react-query").UseQueryResult<import("../../sdk/types.gen").UserSpacesResponse | undefined, Error>;
|
|
69
|
-
export declare const useBootstrapOnboardingWorkspace: (config?: {
|
|
70
|
-
onSuccess?: (data: GetSuccessResponse<BootstrapOnboardingWorkspaceResponses>) => void;
|
|
71
|
-
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
72
|
-
retry?: boolean;
|
|
73
|
-
}) => import("@tanstack/react-query").UseMutationResult<import("../../sdk/types.gen").BootstrapOnboardingWorkspaceResponse | undefined, unknown, Omit<BootstrapOnboardingWorkspaceData, "url">, unknown>;
|
|
74
69
|
export declare const useRecordOnboardingAnalytics: (config?: {
|
|
75
70
|
onSuccess?: (data: GetSuccessResponse<RecordOnboardingAnalyticsResponses>) => void;
|
|
76
71
|
onError?: Parameters<typeof useMutation>["0"]["onError"];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
3
3
|
import { isPromise } from "../util";
|
|
4
4
|
import { useToken } from "../../provider/token-provider";
|
|
5
|
-
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces,
|
|
5
|
+
import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, recordOnboardingAnalytics, createSpace, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, createEnvironment, getEnvironmentOverview, getGraphOverview, updateGraphState, deployVersion, versionStatus, requestSignedUploadUrl, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
|
|
6
6
|
export const useGetServiceHealth = (options) => {
|
|
7
7
|
const token = useToken();
|
|
8
8
|
let { enabled, ...rest } = options || { enabled: true };
|
|
@@ -346,25 +346,6 @@ export const useListUserSpaces = (options) => {
|
|
|
346
346
|
staleTime: 600000
|
|
347
347
|
});
|
|
348
348
|
};
|
|
349
|
-
export const useBootstrapOnboardingWorkspace = (config) => {
|
|
350
|
-
const token = useToken();
|
|
351
|
-
const queryClient = useQueryClient();
|
|
352
|
-
const opts = { throwOnError: true, url: "/auth/onboarding/bootstrap-workspace" };
|
|
353
|
-
const funcer = async (options) => {
|
|
354
|
-
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
355
|
-
const res = await bootstrapOnboardingWorkspace({ ...opts, ...options, auth });
|
|
356
|
-
return res?.data;
|
|
357
|
-
};
|
|
358
|
-
return useMutation({
|
|
359
|
-
mutationFn: funcer,
|
|
360
|
-
onSuccess: (res, options, c, ctx) => {
|
|
361
|
-
queryClient.invalidateQueries({ queryKey: ["onboarding", "bootstrap-workspace"] });
|
|
362
|
-
config?.onSuccess && config.onSuccess(res);
|
|
363
|
-
},
|
|
364
|
-
onError: config?.onError,
|
|
365
|
-
retry: config?.retry
|
|
366
|
-
});
|
|
367
|
-
};
|
|
368
349
|
export const useRecordOnboardingAnalytics = (config) => {
|
|
369
350
|
const token = useToken();
|
|
370
351
|
const queryClient = useQueryClient();
|