@leaflow/sdk 0.0.0-dev.361.gefdc428 → 0.0.0-dev.365.gf6f57d1

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.
Files changed (176) hide show
  1. package/dist/account/v1/generated/functions.d.ts +25 -3
  2. package/dist/account/v1/generated/functions.js +35 -1
  3. package/dist/account/v1/generated/models.d.ts +50 -12
  4. package/dist/account/v1/generated/models.js +5 -0
  5. package/dist/account/v1/generated/schemas.zod.d.ts +3 -2
  6. package/dist/account/v1/generated/schemas.zod.js +3 -2
  7. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.d.ts +1 -1
  8. package/dist/account/v1/generated/validators/acceptConsentsRequestBody.zod.js +1 -1
  9. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.d.ts +1 -1
  10. package/dist/account/v1/generated/validators/acceptInvitationByTokenRequestBody.zod.js +1 -1
  11. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.d.ts +6 -1
  12. package/dist/account/v1/generated/validators/acceptedInvitationResponseBody.zod.js +1 -1
  13. package/dist/account/v1/generated/validators/accountResource.zod.d.ts +1 -1
  14. package/dist/account/v1/generated/validators/accountResource.zod.js +1 -1
  15. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.d.ts +1 -1
  16. package/dist/account/v1/generated/validators/agreementListResponseBody.zod.js +1 -1
  17. package/dist/account/v1/generated/validators/agreementResource.zod.d.ts +1 -1
  18. package/dist/account/v1/generated/validators/agreementResource.zod.js +1 -1
  19. package/dist/account/v1/generated/validators/consentBody.zod.d.ts +1 -1
  20. package/dist/account/v1/generated/validators/consentBody.zod.js +1 -1
  21. package/dist/account/v1/generated/validators/consentListResponseBody.zod.d.ts +1 -1
  22. package/dist/account/v1/generated/validators/consentListResponseBody.zod.js +1 -1
  23. package/dist/account/v1/generated/validators/consentResource.zod.d.ts +1 -1
  24. package/dist/account/v1/generated/validators/consentResource.zod.js +1 -1
  25. package/dist/account/v1/generated/validators/countryOption.zod.d.ts +1 -1
  26. package/dist/account/v1/generated/validators/countryOption.zod.js +1 -1
  27. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.d.ts +1 -1
  28. package/dist/account/v1/generated/validators/createProjectRequestBody.zod.js +1 -1
  29. package/dist/account/v1/generated/validators/cursorPagination.zod.d.ts +1 -1
  30. package/dist/account/v1/generated/validators/cursorPagination.zod.js +1 -1
  31. package/dist/account/v1/generated/validators/error.zod.d.ts +1 -1
  32. package/dist/account/v1/generated/validators/error.zod.js +1 -1
  33. package/dist/account/v1/generated/validators/grantResource.zod.d.ts +1 -1
  34. package/dist/account/v1/generated/validators/grantResource.zod.js +1 -1
  35. package/dist/account/v1/generated/validators/identityVerificationResource.zod.d.ts +1 -1
  36. package/dist/account/v1/generated/validators/identityVerificationResource.zod.js +1 -1
  37. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.d.ts +1 -1
  38. package/dist/account/v1/generated/validators/invitationPreviewResource.zod.js +1 -1
  39. package/dist/account/v1/generated/validators/invitationResource.zod.d.ts +1 -1
  40. package/dist/account/v1/generated/validators/invitationResource.zod.js +1 -1
  41. package/dist/account/v1/generated/validators/languageOption.zod.d.ts +1 -1
  42. package/dist/account/v1/generated/validators/languageOption.zod.js +1 -1
  43. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.d.ts +1 -1
  44. package/dist/account/v1/generated/validators/lengthAwarePageInvitationResource.zod.js +1 -1
  45. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.d.ts +6 -1
  46. package/dist/account/v1/generated/validators/lengthAwarePageProjectAccessResource.zod.js +1 -1
  47. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.d.ts +1 -1
  48. package/dist/account/v1/generated/validators/listMyInvitationsParams.zod.js +1 -1
  49. package/dist/account/v1/generated/validators/listProjectsParams.zod.d.ts +1 -1
  50. package/dist/account/v1/generated/validators/listProjectsParams.zod.js +1 -1
  51. package/dist/account/v1/generated/validators/locale.zod.d.ts +1 -1
  52. package/dist/account/v1/generated/validators/locale.zod.js +1 -1
  53. package/dist/account/v1/generated/validators/localeOptionsResource.zod.d.ts +1 -1
  54. package/dist/account/v1/generated/validators/localeOptionsResource.zod.js +1 -1
  55. package/dist/account/v1/generated/validators/offsetPagination.zod.d.ts +1 -1
  56. package/dist/account/v1/generated/validators/offsetPagination.zod.js +1 -1
  57. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.d.ts +1 -1
  58. package/dist/account/v1/generated/validators/previewInvitationByTokenParams.zod.js +1 -1
  59. package/dist/account/v1/generated/validators/projectAccessList.zod.d.ts +78 -0
  60. package/dist/account/v1/generated/validators/projectAccessList.zod.js +32 -0
  61. package/dist/account/v1/generated/validators/projectAccessResource.zod.d.ts +6 -1
  62. package/dist/account/v1/generated/validators/projectAccessResource.zod.js +1 -1
  63. package/dist/account/v1/generated/validators/projectResource.zod.d.ts +6 -1
  64. package/dist/account/v1/generated/validators/projectResource.zod.js +3 -1
  65. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.d.ts +1 -1
  66. package/dist/account/v1/generated/validators/projectSlugAvailabilityResource.zod.js +1 -1
  67. package/dist/account/v1/generated/validators/projectStatus.zod.d.ts +33 -0
  68. package/dist/account/v1/generated/validators/projectStatus.zod.js +29 -0
  69. package/dist/account/v1/generated/validators/projectTraitResource.zod.d.ts +1 -1
  70. package/dist/account/v1/generated/validators/projectTraitResource.zod.js +1 -1
  71. package/dist/account/v1/generated/validators/registerRequestBody.zod.d.ts +1 -1
  72. package/dist/account/v1/generated/validators/registerRequestBody.zod.js +1 -1
  73. package/dist/account/v1/generated/validators/resourceRefResource.zod.d.ts +1 -1
  74. package/dist/account/v1/generated/validators/resourceRefResource.zod.js +1 -1
  75. package/dist/account/v1/generated/validators/ruleResource.zod.d.ts +1 -1
  76. package/dist/account/v1/generated/validators/ruleResource.zod.js +1 -1
  77. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.d.ts +6 -1
  78. package/dist/account/v1/generated/validators/scopedTokenResponseBody.zod.js +1 -1
  79. package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.d.ts +41 -0
  80. package/dist/account/v1/generated/validators/searchProjectsRequestBody.zod.js +54 -0
  81. package/dist/account/v1/generated/validators/settingsResource.zod.d.ts +1 -1
  82. package/dist/account/v1/generated/validators/settingsResource.zod.js +1 -1
  83. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.d.ts +1 -1
  84. package/dist/account/v1/generated/validators/submitIdentityVerificationRequestBody.zod.js +1 -1
  85. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.d.ts +1 -1
  86. package/dist/account/v1/generated/validators/updateAccountRequestBody.zod.js +1 -1
  87. package/dist/assistant/v1/generated/validators/bindingResource.zod.d.ts +1 -1
  88. package/dist/assistant/v1/generated/validators/fileDiffResource.zod.d.ts +1 -1
  89. package/dist/assistant/v1/generated/validators/lengthAwarePageBindingResource.zod.d.ts +1 -1
  90. package/dist/assistant/v1/generated/validators/presentationResource.zod.d.ts +1 -1
  91. package/dist/assistant/v1/generated/validators/realtimeExchange.zod.d.ts +1 -1
  92. package/dist/assistant/v1/generated/validators/realtimeServerMessage.zod.d.ts +1 -1
  93. package/dist/assistant/v1/generated/validators/searchTasksRequestBody.zod.d.ts +1 -1
  94. package/dist/assistant/v1/generated/validators/taskListResponseBody.zod.d.ts +1 -1
  95. package/dist/assistant/v1/generated/validators/taskResource.zod.d.ts +1 -1
  96. package/dist/assistant/v1/generated/validators/threadItemListResponseBody.zod.d.ts +2 -2
  97. package/dist/assistant/v1/generated/validators/threadItemResource.zod.d.ts +1 -1
  98. package/dist/assistant/v1/generated/validators/toolCallResource.zod.d.ts +1 -1
  99. package/dist/billing/type/order/v1/generated/models.d.ts +11 -0
  100. package/dist/billing/type/order/v1/generated/models.js +5 -0
  101. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.d.ts +5 -0
  102. package/dist/billing/type/order/v1/generated/validators/billingAccount.zod.js +3 -0
  103. package/dist/billing/type/order/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
  104. package/dist/billing/type/order/v1/generated/validators/subscription.zod.d.ts +1 -1
  105. package/dist/billing/type/order/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  106. package/dist/billing/v1/generated/functions.d.ts +47 -0
  107. package/dist/billing/v1/generated/functions.js +37 -0
  108. package/dist/billing/v1/generated/models.d.ts +11 -0
  109. package/dist/billing/v1/generated/models.js +5 -0
  110. package/dist/billing/v1/generated/schemas.zod.d.ts +19 -0
  111. package/dist/billing/v1/generated/schemas.zod.js +19 -0
  112. package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +5 -0
  113. package/dist/billing/v1/generated/validators/billingAccount.zod.js +3 -0
  114. package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
  115. package/dist/billing/v1/generated/validators/subscription.zod.d.ts +1 -1
  116. package/dist/billing/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  117. package/dist/canopy/v1/generated/models.d.ts +11 -0
  118. package/dist/canopy/v1/generated/models.js +5 -0
  119. package/dist/canopy/v1/generated/validators/billingAccount.zod.d.ts +5 -0
  120. package/dist/canopy/v1/generated/validators/billingAccount.zod.js +3 -0
  121. package/dist/canopy/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
  122. package/dist/canopy/v1/generated/validators/createServiceResponseBody.zod.d.ts +1 -1
  123. package/dist/canopy/v1/generated/validators/serviceResource.zod.d.ts +1 -1
  124. package/dist/canopy/v1/generated/validators/subscription.zod.d.ts +1 -1
  125. package/dist/canopy/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  126. package/dist/compute/v1/generated/validators/allocateFloatingIPResponseBody.zod.d.ts +1 -1
  127. package/dist/compute/v1/generated/validators/backupCapacityPack.zod.d.ts +1 -1
  128. package/dist/compute/v1/generated/validators/backupCapacityPackListResponseBody.zod.d.ts +1 -1
  129. package/dist/compute/v1/generated/validators/backupListResponseBody.zod.d.ts +1 -1
  130. package/dist/compute/v1/generated/validators/backupResource.zod.d.ts +1 -1
  131. package/dist/compute/v1/generated/validators/backupService.zod.d.ts +1 -1
  132. package/dist/compute/v1/generated/validators/createBackupCapacityPackResponseBody.zod.d.ts +1 -1
  133. package/dist/compute/v1/generated/validators/createBackupServiceResponseBody.zod.d.ts +1 -1
  134. package/dist/compute/v1/generated/validators/createDiskResponseBody.zod.d.ts +1 -1
  135. package/dist/compute/v1/generated/validators/createImageResponseBody.zod.d.ts +1 -1
  136. package/dist/compute/v1/generated/validators/diskListResponseBody.zod.d.ts +1 -1
  137. package/dist/compute/v1/generated/validators/diskResource.zod.d.ts +1 -1
  138. package/dist/compute/v1/generated/validators/floatingIPListResponseBody.zod.d.ts +1 -1
  139. package/dist/compute/v1/generated/validators/floatingIPResource.zod.d.ts +1 -1
  140. package/dist/compute/v1/generated/validators/iPv6ResponseBody.zod.d.ts +1 -1
  141. package/dist/compute/v1/generated/validators/imageListResponseBody.zod.d.ts +1 -1
  142. package/dist/compute/v1/generated/validators/imageResource.zod.d.ts +1 -1
  143. package/dist/compute/v1/generated/validators/instanceListResponseBody.zod.d.ts +2 -2
  144. package/dist/compute/v1/generated/validators/instanceResource.zod.d.ts +2 -2
  145. package/dist/compute/v1/generated/validators/launchInstanceResponseBody.zod.d.ts +2 -2
  146. package/dist/compute/v1/generated/validators/peeringListResponseBody.zod.d.ts +2 -2
  147. package/dist/compute/v1/generated/validators/peeringResource.zod.d.ts +2 -2
  148. package/dist/compute/v1/generated/validators/rebuildInstanceResponseBody.zod.d.ts +2 -2
  149. package/dist/compute/v1/generated/validators/resizeDiskResponseBody.zod.d.ts +1 -1
  150. package/dist/compute/v1/generated/validators/resizeInstanceResponseBody.zod.d.ts +2 -2
  151. package/dist/compute/v1/generated/validators/setFloatingIPBandwidthResponseBody.zod.d.ts +1 -1
  152. package/dist/compute/v1/generated/validators/setSnapshotQuotaResponseBody.zod.d.ts +1 -1
  153. package/dist/compute/v1/generated/validators/snapshotListResponseBody.zod.d.ts +1 -1
  154. package/dist/compute/v1/generated/validators/snapshotQuota.zod.d.ts +1 -1
  155. package/dist/compute/v1/generated/validators/snapshotResource.zod.d.ts +1 -1
  156. package/dist/iam/v1/generated/models.d.ts +11 -0
  157. package/dist/iam/v1/generated/models.js +5 -0
  158. package/dist/iam/v1/generated/validators/projectAccessResource.zod.d.ts +5 -0
  159. package/dist/iam/v1/generated/validators/projectResource.zod.d.ts +5 -0
  160. package/dist/iam/v1/generated/validators/projectResource.zod.js +3 -0
  161. package/dist/membership/v1/generated/models.d.ts +11 -0
  162. package/dist/membership/v1/generated/models.js +5 -0
  163. package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +5 -0
  164. package/dist/membership/v1/generated/validators/billingAccount.zod.js +3 -0
  165. package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +5 -0
  166. package/dist/membership/v1/generated/validators/membership.zod.d.ts +1 -1
  167. package/dist/membership/v1/generated/validators/membershipList.zod.d.ts +1 -1
  168. package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +1 -1
  169. package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -1
  170. package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -1
  171. package/dist/routes.d.ts +24 -0
  172. package/dist/routes.js +27 -0
  173. package/dist/type/resource/v1/generated/validators/reclamationState.zod.d.ts +1 -1
  174. package/dist/type/resource/v1/generated/validators/resourceUsage.zod.d.ts +1 -1
  175. package/dist/type/resource/v1/generated/validators/resourceUsageList.zod.d.ts +1 -1
  176. package/package.json +1 -1
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -23,7 +23,7 @@
23
23
  * Looking up slugs and claiming custom slugs are rate limited per account. A request over the limit fails with 429, and `meta.retry_after_seconds` on the error states how many seconds to wait before retrying.
24
24
  * OpenAPI spec version: 1.0.0
25
25
  */
26
- import type { AcceptConsentsRequestBody, AcceptInvitationByTokenRequestBody, AcceptedInvitationResponseBody, AccountResource, AgreementListResponseBody, ConsentListResponseBody, CreateProjectRequestBody, Error, IdentityVerificationResource, InvitationPreviewResource, LengthAwarePageInvitationResource, LengthAwarePageProjectAccessResource, ListMyInvitationsParams, ListProjectsParams, LocaleOptionsResource, PreviewInvitationByTokenParams, ProjectAccessResource, ProjectSlugAvailabilityResource, RegisterRequestBody, ScopedTokenResponseBody, SettingsResource, SubmitIdentityVerificationRequestBody, UpdateAccountRequestBody } from "./models.js";
26
+ import type { AcceptConsentsRequestBody, AcceptInvitationByTokenRequestBody, AcceptedInvitationResponseBody, AccountResource, AgreementListResponseBody, ConsentListResponseBody, CreateProjectRequestBody, Error, IdentityVerificationResource, InvitationPreviewResource, LengthAwarePageInvitationResource, LengthAwarePageProjectAccessResource, ListMyInvitationsParams, ListProjectsParams, LocaleOptionsResource, PreviewInvitationByTokenParams, ProjectAccessList, ProjectAccessResource, ProjectSlugAvailabilityResource, RegisterRequestBody, ScopedTokenResponseBody, SearchProjectsRequestBody, SettingsResource, SubmitIdentityVerificationRequestBody, UpdateAccountRequestBody } from "./models.js";
27
27
  export type HTTPStatusCode1xx = 100 | 101 | 102 | 103;
28
28
  export type HTTPStatusCode2xx = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207;
29
29
  export type HTTPStatusCode3xx = 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308;
@@ -359,10 +359,32 @@ export type listProjectsResponseError = listProjectsResponseDefault & {
359
359
  export type listProjectsResponse = listProjectsResponseSuccess | listProjectsResponseError;
360
360
  export declare const getListProjectsUrl: (params?: ListProjectsParams) => string;
361
361
  /**
362
- * Deleted projects are excluded unless `status=DELETED` asks for them by name.
362
+ * Superseded by `QUERY /account/v1/projects`, which filters by status and pages by page number. Projects whose deletion has finished are excluded unless `include_deleted` is true; projects being deleted are included.
363
+ * @deprecated
363
364
  * @summary List the projects the caller belongs to
364
365
  */
365
366
  export declare const listProjects: (params?: ListProjectsParams, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<listProjectsResponse>;
367
+ export type searchProjectsResponse200 = {
368
+ data: ProjectAccessList;
369
+ status: 200;
370
+ };
371
+ export type searchProjectsResponseDefault = {
372
+ data: Error;
373
+ status: Exclude<HTTPStatusCodes, 200>;
374
+ };
375
+ export type searchProjectsResponseSuccess = searchProjectsResponse200 & {
376
+ headers: Headers;
377
+ };
378
+ export type searchProjectsResponseError = searchProjectsResponseDefault & {
379
+ headers: Headers;
380
+ };
381
+ export type searchProjectsResponse = searchProjectsResponseSuccess | searchProjectsResponseError;
382
+ export declare const getSearchProjectsUrl: () => string;
383
+ /**
384
+ * Projects the caller belongs to, most recently created first. The conditions in the body are combined with AND. Without `statuses`, only active projects are returned; projects being deleted and deleted projects are returned only when asked for by status.
385
+ * @summary Search the projects the caller belongs to
386
+ */
387
+ export declare const searchProjects: (searchProjectsRequestBody: SearchProjectsRequestBody, options?: RequestInit, fetchFn?: typeof globalThis.fetch) => Promise<searchProjectsResponse>;
366
388
  export type createProjectResponse201 = {
367
389
  data: ProjectAccessResource;
368
390
  status: 201;
@@ -356,7 +356,8 @@ export const getListProjectsUrl = (params) => {
356
356
  : `https://account.leaflow.cloud/account/v1/projects`;
357
357
  };
358
358
  /**
359
- * Deleted projects are excluded unless `status=DELETED` asks for them by name.
359
+ * Superseded by `QUERY /account/v1/projects`, which filters by status and pages by page number. Projects whose deletion has finished are excluded unless `include_deleted` is true; projects being deleted are included.
360
+ * @deprecated
360
361
  * @summary List the projects the caller belongs to
361
362
  */
362
363
  export const listProjects = async (params, options, fetchFn) => {
@@ -368,6 +369,39 @@ export const listProjects = async (params, options, fetchFn) => {
368
369
  const data = body ? JSON.parse(body) : {};
369
370
  return { data, status: res.status, headers: res.headers };
370
371
  };
372
+ export const getSearchProjectsUrl = () => {
373
+ return `https://account.leaflow.cloud/account/v1/projects`;
374
+ };
375
+ /**
376
+ * Projects the caller belongs to, most recently created first. The conditions in the body are combined with AND. Without `statuses`, only active projects are returned; projects being deleted and deleted projects are returned only when asked for by status.
377
+ * @summary Search the projects the caller belongs to
378
+ */
379
+ export const searchProjects = async (searchProjectsRequestBody, options, fetchFn) => {
380
+ const getHeaders = (h) => {
381
+ if (!h)
382
+ return {};
383
+ if (h instanceof Headers)
384
+ return Object.fromEntries(h.entries());
385
+ if (Symbol.iterator in h) {
386
+ return Object.fromEntries(Array.from(h, (entry) => Array.from(entry)));
387
+ }
388
+ const headers = {};
389
+ for (const [name, value] of Object.entries(h)) {
390
+ if (value !== undefined)
391
+ headers[name] = value;
392
+ }
393
+ return headers;
394
+ };
395
+ const res = await (fetchFn ?? fetch)(getSearchProjectsUrl(), {
396
+ ...options,
397
+ method: "QUERY",
398
+ headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
399
+ body: JSON.stringify(searchProjectsRequestBody),
400
+ });
401
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
402
+ const data = body ? JSON.parse(body) : {};
403
+ return { data, status: res.status, headers: res.headers };
404
+ };
371
405
  export const getCreateProjectUrl = () => {
372
406
  return `https://account.leaflow.cloud/account/v1/projects`;
373
407
  };
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -308,6 +308,15 @@ export interface ProjectTraitResource {
308
308
  effect: ProjectTraitResourceEffect;
309
309
  reason: string;
310
310
  }
311
+ /**
312
+ * `active` until deletion is requested; `deleting` while the resources under the project are being removed, when `deletion_requested_at` is set; `deleted` once removal has finished, when `deleted_at` is set
313
+ */
314
+ export type ProjectStatus = (typeof ProjectStatus)[keyof typeof ProjectStatus];
315
+ export declare const ProjectStatus: {
316
+ readonly active: "active";
317
+ readonly deleting: "deleting";
318
+ readonly deleted: "deleted";
319
+ };
311
320
  export interface ProjectResource {
312
321
  traits: ProjectTraitResource[];
313
322
  /** @nullable */
@@ -327,6 +336,7 @@ export interface ProjectResource {
327
336
  * @maxLength 36
328
337
  */
329
338
  slug: string;
339
+ status: ProjectStatus;
330
340
  name: string;
331
341
  updated_at: string;
332
342
  }
@@ -399,6 +409,45 @@ export interface CreateProjectRequestBody {
399
409
  */
400
410
  slug?: string;
401
411
  }
412
+ export interface SearchProjectsRequestBody {
413
+ /**
414
+ * Matches against name, slug or description, and against the id when it is a complete project id
415
+ * @maxLength 128
416
+ */
417
+ keyword?: string;
418
+ /**
419
+ * The statuses to include. Omitted, only `active` projects are returned
420
+ * @minItems 1
421
+ */
422
+ statuses?: ProjectStatus[];
423
+ /**
424
+ * 1-based page number. Defaults to 1
425
+ * @minimum 1
426
+ * @maximum 2147483647
427
+ */
428
+ page?: number;
429
+ /**
430
+ * Items per page. Defaults to 50; at most 200
431
+ * @minimum 1
432
+ * @maximum 200
433
+ */
434
+ page_size?: number;
435
+ }
436
+ /**
437
+ * Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
438
+ */
439
+ export interface OffsetPagination {
440
+ /** @minimum 1 */
441
+ page: number;
442
+ /** @minimum 1 */
443
+ page_size: number;
444
+ /** @minimum 0 */
445
+ total_count?: number;
446
+ }
447
+ export interface ProjectAccessList {
448
+ items: ProjectAccessResource[];
449
+ pagination: OffsetPagination;
450
+ }
402
451
  /**
403
452
  * `available` when the slug can be chosen now, `reserved` when the name is reserved, and `taken` when a project, including a deleted one, holds it
404
453
  */
@@ -428,17 +477,6 @@ export interface ScopedTokenResponseBody {
428
477
  /** Always `Bearer` */
429
478
  token_type: string;
430
479
  }
431
- /**
432
- * Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan.
433
- */
434
- export interface OffsetPagination {
435
- /** @minimum 1 */
436
- page: number;
437
- /** @minimum 1 */
438
- page_size: number;
439
- /** @minimum 0 */
440
- total_count?: number;
441
- }
442
480
  /**
443
481
  * Pagination metadata for keyset traversal. Pass next_cursor as cursor to read the following page; null means there is no following page.
444
482
  */
@@ -49,6 +49,11 @@ export const ProjectTraitResourceEffect = {
49
49
  NoWrite: "NoWrite",
50
50
  NoAccess: "NoAccess",
51
51
  };
52
+ export const ProjectStatus = {
53
+ active: "active",
54
+ deleting: "deleting",
55
+ deleted: "deleted",
56
+ };
52
57
  export const RuleResourceEffect = {
53
58
  allow: "allow",
54
59
  deny: "deny",
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -122,7 +122,8 @@ export declare const AcceptInvitationParams: zod.ZodObject<{
122
122
  invitationId: zod.ZodUUID;
123
123
  }, zod.z.core.$strict>;
124
124
  /**
125
- * Deleted projects are excluded unless `status=DELETED` asks for them by name.
125
+ * Superseded by `QUERY /account/v1/projects`, which filters by status and pages by page number. Projects whose deletion has finished are excluded unless `include_deleted` is true; projects being deleted are included.
126
+ * @deprecated
126
127
  * @summary List the projects the caller belongs to
127
128
  */
128
129
  export declare const listProjectsQueryLimitDefault = 50;
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -106,7 +106,8 @@ export const AcceptInvitationParams = zod.strictObject({
106
106
  invitationId: zod.uuid(),
107
107
  });
108
108
  /**
109
- * Deleted projects are excluded unless `status=DELETED` asks for them by name.
109
+ * Superseded by `QUERY /account/v1/projects`, which filters by status and pages by page number. Projects whose deletion has finished are excluded unless `include_deleted` is true; projects being deleted are included.
110
+ * @deprecated
110
111
  * @summary List the projects the caller belongs to
111
112
  */
112
113
  export const listProjectsQueryLimitDefault = 50;
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -42,6 +42,11 @@ export declare const AcceptedInvitationResponseBody: zod.ZodObject<{
42
42
  description: zod.ZodString;
43
43
  id: zod.ZodUUID;
44
44
  slug: zod.ZodString;
45
+ status: zod.ZodEnum<{
46
+ active: "active";
47
+ deleting: "deleting";
48
+ deleted: "deleted";
49
+ }>;
45
50
  name: zod.ZodString;
46
51
  updated_at: zod.z.ZodISODateTime;
47
52
  }, zod.z.core.$strict>;
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * ## Entering a project
12
12
  *
13
- * 1. `GET /account/v1/projects` lists the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
13
+ * 1. `QUERY /account/v1/projects` searches the projects the caller belongs to. The first call registers the account, taking the name and email address from the sign-in claims.
14
14
  * 2. `POST /account/v1/projects/{projectId}/scoped-tokens` returns a scoped token for the project chosen.
15
15
  * 3. Every other service is called with that scoped token.
16
16
  *