shoal-web-sdk 0.0.124 → 0.0.126

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.
@@ -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 { 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, FetchLogsData, 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, 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 } from '../types.gen';
3
+ import type { BootstrapOnboardingWorkspaceData, BootstrapOnboardingWorkspaceError, BootstrapOnboardingWorkspaceResponse2, 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, FetchLogsData, 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, 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 } 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,6 +412,10 @@ 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>>;
415
419
  /**
416
420
  * Create a space.
417
421
  */
@@ -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 { createEnvironment, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchLogs, 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, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateGraphM2M, updateGraphState, updateUsername, updateUserProfile } from '../sdk.gen';
4
+ import { bootstrapOnboardingWorkspace, createEnvironment, createProject, createSetupIntent, createSpace, createSpaceInvite, createUsername, deleteAccountIdentity, deployVersion, fetchBillingPrices, fetchGraphM2M, fetchKindeOrganisationBillingAgreements, fetchLogs, 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, rejectSpaceInvite, removePaymentMethod, requestAccountPasswordReset, requestSignedUploadUrl, revokeSpaceInvite, setDefaultPaymentMethod, updateBillingPlan, updateConnectedAppToken, updateGraphM2M, updateGraphState, updateUsername, updateUserProfile } 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,6 +456,22 @@ 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
+ };
459
475
  /**
460
476
  * Create a space.
461
477
  */
@@ -1,5 +1,5 @@
1
1
  import type { Client, Options as Options2, TDataShape } from './client';
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, FetchLogsData, FetchLogsErrors, FetchLogsResponses, 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, 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 } from './types.gen';
2
+ import type { BootstrapOnboardingWorkspaceData, BootstrapOnboardingWorkspaceErrors, BootstrapOnboardingWorkspaceResponses, 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, FetchLogsData, FetchLogsErrors, FetchLogsResponses, 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, 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 } 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,6 +81,10 @@ 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">;
84
88
  /**
85
89
  * Create a space.
86
90
  */
@@ -271,6 +271,25 @@ 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
+ };
274
293
  /**
275
294
  * Create a space.
276
295
  */
@@ -70,6 +70,22 @@ export type CreateEnvironment = {
70
70
  handle: string;
71
71
  description?: string;
72
72
  };
73
+ export type BootstrapOnboardingWorkspace = {
74
+ /**
75
+ * Seed value used to derive default onboarding names and handles.
76
+ */
77
+ seed: string;
78
+ };
79
+ export type OnboardingBootstrapResource = {
80
+ id: string;
81
+ name: string;
82
+ handle: string;
83
+ };
84
+ export type BootstrapOnboardingWorkspaceResponse = {
85
+ space: OnboardingBootstrapResource;
86
+ project: OnboardingBootstrapResource;
87
+ environment: OnboardingBootstrapResource;
88
+ };
73
89
  export type SpaceOverview = {
74
90
  id: string;
75
91
  name: string;
@@ -314,6 +330,7 @@ export type Node = {
314
330
  };
315
331
  export type EdgeType = 'network' | 'route';
316
332
  export type NodeType = 'cache' | 'comment' | 'container' | 'cronjob' | 'database' | 'function' | 'queue' | 'proxy' | 'vm' | 'scheduler';
333
+ export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
317
334
  export type CommentNodeProps = {
318
335
  comment?: string;
319
336
  };
@@ -321,8 +338,15 @@ export type CacheNodeProps = {
321
338
  size?: number;
322
339
  };
323
340
  export type SchedulerNodeProps = {
324
- url?: string;
325
- expression?: string;
341
+ url: string;
342
+ expression: string;
343
+ timezone: string;
344
+ requestMethod: HttpMethod;
345
+ requestPayload?: string;
346
+ requestHeaders?: {
347
+ [key: string]: string;
348
+ };
349
+ paused?: boolean;
326
350
  };
327
351
  export type ContainerNodeProps = {
328
352
  region: Region;
@@ -1206,6 +1230,42 @@ export type ListUserSpacesResponses = {
1206
1230
  200: UserSpacesResponse;
1207
1231
  };
1208
1232
  export type ListUserSpacesResponse = ListUserSpacesResponses[keyof ListUserSpacesResponses];
1233
+ export type BootstrapOnboardingWorkspaceData = {
1234
+ body: BootstrapOnboardingWorkspace;
1235
+ path?: never;
1236
+ query?: never;
1237
+ url: '/auth/onboarding/bootstrap-workspace';
1238
+ };
1239
+ export type BootstrapOnboardingWorkspaceErrors = {
1240
+ /**
1241
+ * Bad request.
1242
+ */
1243
+ 400: ErrorResponse;
1244
+ /**
1245
+ * Unauthorised user.
1246
+ */
1247
+ 401: ErrorResponse;
1248
+ /**
1249
+ * Invalid credentials.
1250
+ */
1251
+ 403: ErrorResponse;
1252
+ /**
1253
+ * Related content not found.
1254
+ */
1255
+ 404: ErrorResponse;
1256
+ /**
1257
+ * Unexpected error.
1258
+ */
1259
+ 500: ErrorResponse;
1260
+ };
1261
+ export type BootstrapOnboardingWorkspaceError = BootstrapOnboardingWorkspaceErrors[keyof BootstrapOnboardingWorkspaceErrors];
1262
+ export type BootstrapOnboardingWorkspaceResponses = {
1263
+ /**
1264
+ * Successfully bootstrapped onboarding resources.
1265
+ */
1266
+ 201: BootstrapOnboardingWorkspaceResponse;
1267
+ };
1268
+ export type BootstrapOnboardingWorkspaceResponse2 = BootstrapOnboardingWorkspaceResponses[keyof BootstrapOnboardingWorkspaceResponses];
1209
1269
  export type CreateSpaceData = {
1210
1270
  body: CreateSpace;
1211
1271
  path?: never;
@@ -111,6 +111,31 @@ export declare const zCreateEnvironment: z.ZodObject<{
111
111
  handle: z.ZodString;
112
112
  description: z.ZodOptional<z.ZodString>;
113
113
  }, z.core.$strip>;
114
+ export declare const zBootstrapOnboardingWorkspace: z.ZodObject<{
115
+ seed: z.ZodString;
116
+ }, z.core.$strip>;
117
+ export declare const zOnboardingBootstrapResource: z.ZodObject<{
118
+ id: z.ZodString;
119
+ name: z.ZodString;
120
+ handle: z.ZodString;
121
+ }, z.core.$strip>;
122
+ export declare const zBootstrapOnboardingWorkspaceResponse: z.ZodObject<{
123
+ space: z.ZodObject<{
124
+ id: z.ZodString;
125
+ name: z.ZodString;
126
+ handle: z.ZodString;
127
+ }, z.core.$strip>;
128
+ project: z.ZodObject<{
129
+ id: z.ZodString;
130
+ name: z.ZodString;
131
+ handle: z.ZodString;
132
+ }, z.core.$strip>;
133
+ environment: z.ZodObject<{
134
+ id: z.ZodString;
135
+ name: z.ZodString;
136
+ handle: z.ZodString;
137
+ }, z.core.$strip>;
138
+ }, z.core.$strip>;
114
139
  export declare const zSpaceOrgCodeResponse: z.ZodObject<{
115
140
  orgCode: z.ZodString;
116
141
  }, z.core.$strip>;
@@ -464,6 +489,15 @@ export declare const zNodeType: z.ZodEnum<{
464
489
  vm: "vm";
465
490
  scheduler: "scheduler";
466
491
  }>;
492
+ export declare const zHttpMethod: z.ZodEnum<{
493
+ DELETE: "DELETE";
494
+ GET: "GET";
495
+ HEAD: "HEAD";
496
+ OPTIONS: "OPTIONS";
497
+ PATCH: "PATCH";
498
+ POST: "POST";
499
+ PUT: "PUT";
500
+ }>;
467
501
  export declare const zCommentNodeProps: z.ZodObject<{
468
502
  comment: z.ZodOptional<z.ZodString>;
469
503
  }, z.core.$strip>;
@@ -471,8 +505,21 @@ export declare const zCacheNodeProps: z.ZodObject<{
471
505
  size: z.ZodOptional<z.ZodInt>;
472
506
  }, z.core.$strip>;
473
507
  export declare const zSchedulerNodeProps: z.ZodObject<{
474
- url: z.ZodOptional<z.ZodString>;
475
- expression: z.ZodOptional<z.ZodString>;
508
+ url: z.ZodString;
509
+ expression: z.ZodString;
510
+ timezone: z.ZodString;
511
+ requestMethod: z.ZodEnum<{
512
+ DELETE: "DELETE";
513
+ GET: "GET";
514
+ HEAD: "HEAD";
515
+ OPTIONS: "OPTIONS";
516
+ PATCH: "PATCH";
517
+ POST: "POST";
518
+ PUT: "PUT";
519
+ }>;
520
+ requestPayload: z.ZodOptional<z.ZodString>;
521
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
522
+ paused: z.ZodOptional<z.ZodBoolean>;
476
523
  }, z.core.$strip>;
477
524
  export declare const zRegion: z.ZodEnum<{
478
525
  "africa-south1": "africa-south1";
@@ -744,8 +791,21 @@ export declare const zNode: z.ZodObject<{
744
791
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
745
792
  typ: z.ZodLiteral<"scheduler">;
746
793
  }, z.core.$strip>, z.ZodObject<{
747
- url: z.ZodOptional<z.ZodString>;
748
- expression: z.ZodOptional<z.ZodString>;
794
+ url: z.ZodString;
795
+ expression: z.ZodString;
796
+ timezone: z.ZodString;
797
+ requestMethod: z.ZodEnum<{
798
+ DELETE: "DELETE";
799
+ GET: "GET";
800
+ HEAD: "HEAD";
801
+ OPTIONS: "OPTIONS";
802
+ PATCH: "PATCH";
803
+ POST: "POST";
804
+ PUT: "PUT";
805
+ }>;
806
+ requestPayload: z.ZodOptional<z.ZodString>;
807
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
808
+ paused: z.ZodOptional<z.ZodBoolean>;
749
809
  }, z.core.$strip>>]>>;
750
810
  }, z.core.$strip>;
751
811
  export declare const zNodes: z.ZodObject<{
@@ -886,8 +946,21 @@ export declare const zNodes: z.ZodObject<{
886
946
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
887
947
  typ: z.ZodLiteral<"scheduler">;
888
948
  }, z.core.$strip>, z.ZodObject<{
889
- url: z.ZodOptional<z.ZodString>;
890
- expression: z.ZodOptional<z.ZodString>;
949
+ url: z.ZodString;
950
+ expression: z.ZodString;
951
+ timezone: z.ZodString;
952
+ requestMethod: z.ZodEnum<{
953
+ DELETE: "DELETE";
954
+ GET: "GET";
955
+ HEAD: "HEAD";
956
+ OPTIONS: "OPTIONS";
957
+ PATCH: "PATCH";
958
+ POST: "POST";
959
+ PUT: "PUT";
960
+ }>;
961
+ requestPayload: z.ZodOptional<z.ZodString>;
962
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
963
+ paused: z.ZodOptional<z.ZodBoolean>;
891
964
  }, z.core.$strip>>]>>;
892
965
  }, z.core.$strip>>;
893
966
  }, z.core.$strip>;
@@ -1030,8 +1103,21 @@ export declare const zGraph: z.ZodObject<{
1030
1103
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1031
1104
  typ: z.ZodLiteral<"scheduler">;
1032
1105
  }, z.core.$strip>, z.ZodObject<{
1033
- url: z.ZodOptional<z.ZodString>;
1034
- expression: z.ZodOptional<z.ZodString>;
1106
+ url: z.ZodString;
1107
+ expression: z.ZodString;
1108
+ timezone: z.ZodString;
1109
+ requestMethod: z.ZodEnum<{
1110
+ DELETE: "DELETE";
1111
+ GET: "GET";
1112
+ HEAD: "HEAD";
1113
+ OPTIONS: "OPTIONS";
1114
+ PATCH: "PATCH";
1115
+ POST: "POST";
1116
+ PUT: "PUT";
1117
+ }>;
1118
+ requestPayload: z.ZodOptional<z.ZodString>;
1119
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1120
+ paused: z.ZodOptional<z.ZodBoolean>;
1035
1121
  }, z.core.$strip>>]>>;
1036
1122
  }, z.core.$strip>>;
1037
1123
  }, z.core.$strip>;
@@ -1378,8 +1464,21 @@ export declare const zFetchGraphM2mResponse: z.ZodObject<{
1378
1464
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1379
1465
  typ: z.ZodLiteral<"scheduler">;
1380
1466
  }, z.core.$strip>, z.ZodObject<{
1381
- url: z.ZodOptional<z.ZodString>;
1382
- expression: z.ZodOptional<z.ZodString>;
1467
+ url: z.ZodString;
1468
+ expression: z.ZodString;
1469
+ timezone: z.ZodString;
1470
+ requestMethod: z.ZodEnum<{
1471
+ DELETE: "DELETE";
1472
+ GET: "GET";
1473
+ HEAD: "HEAD";
1474
+ OPTIONS: "OPTIONS";
1475
+ PATCH: "PATCH";
1476
+ POST: "POST";
1477
+ PUT: "PUT";
1478
+ }>;
1479
+ requestPayload: z.ZodOptional<z.ZodString>;
1480
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1481
+ paused: z.ZodOptional<z.ZodBoolean>;
1383
1482
  }, z.core.$strip>>]>>;
1384
1483
  }, z.core.$strip>>;
1385
1484
  }, z.core.$strip>;
@@ -1522,8 +1621,21 @@ export declare const zUpdateGraphM2mData: z.ZodObject<{
1522
1621
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1523
1622
  typ: z.ZodLiteral<"scheduler">;
1524
1623
  }, z.core.$strip>, z.ZodObject<{
1525
- url: z.ZodOptional<z.ZodString>;
1526
- expression: z.ZodOptional<z.ZodString>;
1624
+ url: z.ZodString;
1625
+ expression: z.ZodString;
1626
+ timezone: z.ZodString;
1627
+ requestMethod: z.ZodEnum<{
1628
+ DELETE: "DELETE";
1629
+ GET: "GET";
1630
+ HEAD: "HEAD";
1631
+ OPTIONS: "OPTIONS";
1632
+ PATCH: "PATCH";
1633
+ POST: "POST";
1634
+ PUT: "PUT";
1635
+ }>;
1636
+ requestPayload: z.ZodOptional<z.ZodString>;
1637
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1638
+ paused: z.ZodOptional<z.ZodBoolean>;
1527
1639
  }, z.core.$strip>>]>>;
1528
1640
  }, z.core.$strip>>;
1529
1641
  }, z.core.$strip>;
@@ -1680,8 +1792,21 @@ export declare const zFetchNodeM2mResponse: z.ZodObject<{
1680
1792
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
1681
1793
  typ: z.ZodLiteral<"scheduler">;
1682
1794
  }, z.core.$strip>, z.ZodObject<{
1683
- url: z.ZodOptional<z.ZodString>;
1684
- expression: z.ZodOptional<z.ZodString>;
1795
+ url: z.ZodString;
1796
+ expression: z.ZodString;
1797
+ timezone: z.ZodString;
1798
+ requestMethod: z.ZodEnum<{
1799
+ DELETE: "DELETE";
1800
+ GET: "GET";
1801
+ HEAD: "HEAD";
1802
+ OPTIONS: "OPTIONS";
1803
+ PATCH: "PATCH";
1804
+ POST: "POST";
1805
+ PUT: "PUT";
1806
+ }>;
1807
+ requestPayload: z.ZodOptional<z.ZodString>;
1808
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1809
+ paused: z.ZodOptional<z.ZodBoolean>;
1685
1810
  }, z.core.$strip>>]>>;
1686
1811
  }, z.core.$strip>;
1687
1812
  export declare const zRequestAccountPasswordResetData: z.ZodObject<{
@@ -1905,6 +2030,33 @@ export declare const zListUserSpacesResponse: z.ZodObject<{
1905
2030
  }, z.core.$strip>>;
1906
2031
  next_page: z.ZodOptional<z.ZodInt>;
1907
2032
  }, z.core.$strip>;
2033
+ export declare const zBootstrapOnboardingWorkspaceData: z.ZodObject<{
2034
+ body: z.ZodObject<{
2035
+ seed: z.ZodString;
2036
+ }, z.core.$strip>;
2037
+ path: z.ZodOptional<z.ZodNever>;
2038
+ query: z.ZodOptional<z.ZodNever>;
2039
+ }, z.core.$strip>;
2040
+ /**
2041
+ * Successfully bootstrapped onboarding resources.
2042
+ */
2043
+ export declare const zBootstrapOnboardingWorkspaceResponse2: z.ZodObject<{
2044
+ space: z.ZodObject<{
2045
+ id: z.ZodString;
2046
+ name: z.ZodString;
2047
+ handle: z.ZodString;
2048
+ }, z.core.$strip>;
2049
+ project: z.ZodObject<{
2050
+ id: z.ZodString;
2051
+ name: z.ZodString;
2052
+ handle: z.ZodString;
2053
+ }, z.core.$strip>;
2054
+ environment: z.ZodObject<{
2055
+ id: z.ZodString;
2056
+ name: z.ZodString;
2057
+ handle: z.ZodString;
2058
+ }, z.core.$strip>;
2059
+ }, z.core.$strip>;
1908
2060
  export declare const zCreateSpaceData: z.ZodObject<{
1909
2061
  body: z.ZodObject<{
1910
2062
  name: z.ZodString;
@@ -2443,8 +2595,21 @@ export declare const zGetGraphOverviewResponse: z.ZodObject<{
2443
2595
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2444
2596
  typ: z.ZodLiteral<"scheduler">;
2445
2597
  }, z.core.$strip>, z.ZodObject<{
2446
- url: z.ZodOptional<z.ZodString>;
2447
- expression: z.ZodOptional<z.ZodString>;
2598
+ url: z.ZodString;
2599
+ expression: z.ZodString;
2600
+ timezone: z.ZodString;
2601
+ requestMethod: z.ZodEnum<{
2602
+ DELETE: "DELETE";
2603
+ GET: "GET";
2604
+ HEAD: "HEAD";
2605
+ OPTIONS: "OPTIONS";
2606
+ PATCH: "PATCH";
2607
+ POST: "POST";
2608
+ PUT: "PUT";
2609
+ }>;
2610
+ requestPayload: z.ZodOptional<z.ZodString>;
2611
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2612
+ paused: z.ZodOptional<z.ZodBoolean>;
2448
2613
  }, z.core.$strip>>]>>;
2449
2614
  }, z.core.$strip>>;
2450
2615
  }, z.core.$strip>;
@@ -2587,8 +2752,21 @@ export declare const zUpdateGraphStateData: z.ZodObject<{
2587
2752
  }, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
2588
2753
  typ: z.ZodLiteral<"scheduler">;
2589
2754
  }, z.core.$strip>, z.ZodObject<{
2590
- url: z.ZodOptional<z.ZodString>;
2591
- expression: z.ZodOptional<z.ZodString>;
2755
+ url: z.ZodString;
2756
+ expression: z.ZodString;
2757
+ timezone: z.ZodString;
2758
+ requestMethod: z.ZodEnum<{
2759
+ DELETE: "DELETE";
2760
+ GET: "GET";
2761
+ HEAD: "HEAD";
2762
+ OPTIONS: "OPTIONS";
2763
+ PATCH: "PATCH";
2764
+ POST: "POST";
2765
+ PUT: "PUT";
2766
+ }>;
2767
+ requestPayload: z.ZodOptional<z.ZodString>;
2768
+ requestHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2769
+ paused: z.ZodOptional<z.ZodBoolean>;
2592
2770
  }, z.core.$strip>>]>>;
2593
2771
  }, z.core.$strip>>;
2594
2772
  }, z.core.$strip>;
@@ -83,6 +83,19 @@ export const zCreateEnvironment = z.object({
83
83
  handle: z.string(),
84
84
  description: z.optional(z.string())
85
85
  });
86
+ export const zBootstrapOnboardingWorkspace = z.object({
87
+ seed: z.string()
88
+ });
89
+ export const zOnboardingBootstrapResource = z.object({
90
+ id: z.string(),
91
+ name: z.string(),
92
+ handle: z.string()
93
+ });
94
+ export const zBootstrapOnboardingWorkspaceResponse = z.object({
95
+ space: zOnboardingBootstrapResource,
96
+ project: zOnboardingBootstrapResource,
97
+ environment: zOnboardingBootstrapResource
98
+ });
86
99
  export const zSpaceOrgCodeResponse = z.object({
87
100
  orgCode: z.string()
88
101
  });
@@ -307,6 +320,15 @@ export const zNodeType = z.enum([
307
320
  'vm',
308
321
  'scheduler'
309
322
  ]);
323
+ export const zHttpMethod = z.enum([
324
+ 'GET',
325
+ 'POST',
326
+ 'PUT',
327
+ 'PATCH',
328
+ 'DELETE',
329
+ 'HEAD',
330
+ 'OPTIONS'
331
+ ]);
310
332
  export const zCommentNodeProps = z.object({
311
333
  comment: z.optional(z.string())
312
334
  });
@@ -314,8 +336,13 @@ export const zCacheNodeProps = z.object({
314
336
  size: z.optional(z.int())
315
337
  });
316
338
  export const zSchedulerNodeProps = z.object({
317
- url: z.optional(z.string()),
318
- expression: z.optional(z.string())
339
+ url: z.string(),
340
+ expression: z.string(),
341
+ timezone: z.string(),
342
+ requestMethod: zHttpMethod,
343
+ requestPayload: z.optional(z.string()),
344
+ requestHeaders: z.optional(z.record(z.string(), z.string())),
345
+ paused: z.optional(z.boolean())
319
346
  });
320
347
  export const zRegion = z.enum([
321
348
  'africa-south1',
@@ -777,6 +804,15 @@ export const zListUserSpacesData = z.object({
777
804
  * A list of spaces for the authenticated user.
778
805
  */
779
806
  export const zListUserSpacesResponse = zUserSpacesResponse;
807
+ export const zBootstrapOnboardingWorkspaceData = z.object({
808
+ body: zBootstrapOnboardingWorkspace,
809
+ path: z.optional(z.never()),
810
+ query: z.optional(z.never())
811
+ });
812
+ /**
813
+ * Successfully bootstrapped onboarding resources.
814
+ */
815
+ export const zBootstrapOnboardingWorkspaceResponse2 = zBootstrapOnboardingWorkspaceResponse;
780
816
  export const zCreateSpaceData = z.object({
781
817
  body: zCreateSpace,
782
818
  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, CreateSpaceData, CreateSpaceResponses, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, FetchLogsData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, RequestSignedUploadUrlData, RequestSignedUploadUrlResponses, RecordCloudUsageData, RecordCloudUsageResponses, GetBillingPlanData, UpdateBillingPlanData, UpdateBillingPlanResponses, CreateSetupIntentData, CreateSetupIntentResponses, ListPaymentMethodsData, RemovePaymentMethodData, RemovePaymentMethodResponses, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponses, GetBillingUsageData, FetchBillingPricesData, ListBillingInvoicesData } from "../../sdk/types.gen";
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, BootstrapOnboardingWorkspaceData, BootstrapOnboardingWorkspaceResponses, CreateSpaceData, CreateSpaceResponses, GetUserInvitesData, JoinSpaceData, JoinSpaceResponses, RejectSpaceInviteData, RejectSpaceInviteResponses, GetSpaceOverviewData, GetSpaceOrgCodeData, FetchKindeOrganisationBillingAgreementsData, GetSpaceInvitesData, CreateSpaceInviteData, CreateSpaceInviteResponses, RevokeSpaceInviteData, RevokeSpaceInviteResponses, ListSpaceMembersData, ListSpaceMemberRolesData, LeaveSpaceData, LeaveSpaceResponses, CreateProjectData, CreateProjectResponses, GetProjectOverviewData, FetchLogsData, CreateEnvironmentData, CreateEnvironmentResponses, GetEnvironmentOverviewData, GetGraphOverviewData, UpdateGraphStateData, UpdateGraphStateResponses, DeployVersionData, DeployVersionResponses, 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,6 +66,11 @@ 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>;
69
74
  export declare const useCreateSpace: (config?: {
70
75
  onSuccess?: (data: GetSuccessResponse<CreateSpaceResponses>) => void;
71
76
  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, createSpace, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, fetchLogs, createEnvironment, getEnvironmentOverview, getGraphOverview, updateGraphState, deployVersion, requestSignedUploadUrl, recordCloudUsage, getBillingPlan, updateBillingPlan, createSetupIntent, listPaymentMethods, removePaymentMethod, setDefaultPaymentMethod, getBillingUsage, fetchBillingPrices, listBillingInvoices } from "../../sdk/sdk.gen";
5
+ import { getServiceHealth, fetchGraphM2M, updateGraphM2M, fetchNodeM2M, requestAccountPasswordReset, updateUsername, createUsername, getUserProfile, updateUserProfile, getUserIdentities, deleteAccountIdentity, getConnectedAppUrl, updateConnectedAppToken, listInstallationRepositories, listInstallationBranches, listUserInstallations, listUserSpaces, bootstrapOnboardingWorkspace, createSpace, getUserInvites, joinSpace, rejectSpaceInvite, getSpaceOverview, getSpaceOrgCode, fetchKindeOrganisationBillingAgreements, getSpaceInvites, createSpaceInvite, revokeSpaceInvite, listSpaceMembers, listSpaceMemberRoles, leaveSpace, createProject, getProjectOverview, fetchLogs, createEnvironment, getEnvironmentOverview, getGraphOverview, updateGraphState, deployVersion, 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,6 +346,25 @@ 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
+ };
349
368
  export const useCreateSpace = (config) => {
350
369
  const token = useToken();
351
370
  const queryClient = useQueryClient();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",