@kittycad/lib 4.4.10 → 4.4.12

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 (45) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/src/api/factory/list_org_factory_jobs.d.ts +30 -0
  4. package/dist/types/src/api/factory/list_org_factory_jobs.d.ts.map +1 -0
  5. package/dist/types/src/api/factory/list_user_factory_jobs.d.ts +30 -0
  6. package/dist/types/src/api/factory/list_user_factory_jobs.d.ts.map +1 -0
  7. package/dist/types/src/index.d.ts +9 -43
  8. package/dist/types/src/index.d.ts.map +1 -1
  9. package/dist/types/src/models.d.ts +91 -479
  10. package/dist/types/src/models.d.ts.map +1 -1
  11. package/package.json +2 -2
  12. package/dist/types/src/api/apps/apps_github_callback.d.ts +0 -21
  13. package/dist/types/src/api/apps/apps_github_callback.d.ts.map +0 -1
  14. package/dist/types/src/api/apps/apps_github_consent.d.ts +0 -24
  15. package/dist/types/src/api/apps/apps_github_consent.d.ts.map +0 -1
  16. package/dist/types/src/api/apps/apps_github_webhook.d.ts +0 -21
  17. package/dist/types/src/api/apps/apps_github_webhook.d.ts.map +0 -1
  18. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +0 -26
  19. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +0 -1
  20. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_org.d.ts +0 -32
  21. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_org.d.ts.map +0 -1
  22. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_user.d.ts +0 -32
  23. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_user.d.ts.map +0 -1
  24. package/dist/types/src/api/orgs/get_billing_contract_for_any_org.d.ts +0 -24
  25. package/dist/types/src/api/orgs/get_billing_contract_for_any_org.d.ts.map +0 -1
  26. package/dist/types/src/api/orgs/upsert_billing_contract_for_any_org.d.ts +0 -26
  27. package/dist/types/src/api/orgs/upsert_billing_contract_for_any_org.d.ts.map +0 -1
  28. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts +0 -26
  29. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts.map +0 -1
  30. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts +0 -26
  31. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts.map +0 -1
  32. package/dist/types/src/api/payments/update_org_subscription_for_any_org.d.ts +0 -26
  33. package/dist/types/src/api/payments/update_org_subscription_for_any_org.d.ts.map +0 -1
  34. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts +0 -28
  35. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts.map +0 -1
  36. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts +0 -28
  37. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts.map +0 -1
  38. package/dist/types/src/api/payments/upsert_subscription_plan_price.d.ts +0 -26
  39. package/dist/types/src/api/payments/upsert_subscription_plan_price.d.ts.map +0 -1
  40. package/dist/types/src/api/store/create_store_coupon.d.ts +0 -24
  41. package/dist/types/src/api/store/create_store_coupon.d.ts.map +0 -1
  42. package/dist/types/src/api/users/update_subscription_for_user.d.ts +0 -26
  43. package/dist/types/src/api/users/update_subscription_for_user.d.ts.map +0 -1
  44. package/dist/types/src/api/users/user_admin_details_get.d.ts +0 -24
  45. package/dist/types/src/api/users/user_admin_details_get.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kittycad/lib",
3
- "version": "4.4.10",
3
+ "version": "4.4.12",
4
4
  "description": "Javascript library for KittyCAD API",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -81,7 +81,7 @@
81
81
  "author": "Kurt Hutten <kurt@zoo.dev>",
82
82
  "license": "MIT",
83
83
  "dependencies": {
84
- "@kittycad/kcl-wasm-lib": "0.1.181",
84
+ "@kittycad/kcl-wasm-lib": "0.1.182",
85
85
  "@kittycad/oauth2-auth-code-pkce": "^4.0.0",
86
86
  "@msgpack/msgpack": "^3.1.3",
87
87
  "bson": "^7.1.1",
@@ -1,21 +0,0 @@
1
- import { Client } from '../../client.js';
2
- interface AppsGithubCallbackInput {
3
- client?: Client;
4
- }
5
- type AppsGithubCallbackReturn = void;
6
- /**
7
- * Listen for callbacks to GitHub app authentication.
8
- *
9
- * This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
10
- *
11
- * The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
12
- *
13
- * Tags: apps, hidden
14
- *
15
- * @param params Function parameters.
16
- * @property {Client} [client] Optional client with auth token.
17
- * @returns {Promise<AppsGithubCallbackReturn>} successful operation, no content
18
- */
19
- export default function apps_github_callback({ client }?: AppsGithubCallbackInput): Promise<AppsGithubCallbackReturn>;
20
- export {};
21
- //# sourceMappingURL=apps_github_callback.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps_github_callback.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_callback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAKpD,UAAU,uBAAuB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,KAAK,wBAAwB,GAAG,IAAI,CAAA;AAEpC;;;;;;;;;;;;GAYG;AACH,wBAA8B,oBAAoB,CAChD,EAAE,MAAM,EAAE,GAAE,uBAAuD,GAClE,OAAO,CAAC,wBAAwB,CAAC,CAoBnC"}
@@ -1,24 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { AppClientInfo } from '../../models.js';
3
- interface AppsGithubConsentInput {
4
- client?: Client;
5
- }
6
- type AppsGithubConsentReturn = AppClientInfo;
7
- /**
8
- * Get the consent URL for GitHub app authentication.
9
- *
10
- * This is different than OAuth 2.0 authentication for users. This endpoint grants access for Zoo to access user's repos.
11
- *
12
- * The user doesn't need Zoo OAuth authorization for this endpoint, this is purely for the GitHub permissions to access repos.
13
- *
14
- * Tags: apps, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @returns {Promise<AppsGithubConsentReturn>} successful operation
19
- *
20
- * Possible return types: AppClientInfo
21
- */
22
- export default function apps_github_consent({ client }?: AppsGithubConsentInput): Promise<AppsGithubConsentReturn>;
23
- export {};
24
- //# sourceMappingURL=apps_github_consent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps_github_consent.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_consent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,KAAK,uBAAuB,GAAG,aAAa,CAAA;AAE5C;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,mBAAmB,CAC/C,EAAE,MAAM,EAAE,GAAE,sBAAqD,GAChE,OAAO,CAAC,uBAAuB,CAAC,CAqBlC"}
@@ -1,21 +0,0 @@
1
- import { Client } from '../../client.js';
2
- interface AppsGithubWebhookInput {
3
- client?: Client;
4
- body: string;
5
- }
6
- type AppsGithubWebhookReturn = void;
7
- /**
8
- * Listen for GitHub webhooks.
9
- *
10
- * These come from the GitHub app.
11
- *
12
- * Tags: apps, hidden
13
- *
14
- * @param params Function parameters.
15
- * @property {Client} [client] Optional client with auth token.
16
- * @property {string} body Request body payload
17
- * @returns {Promise<AppsGithubWebhookReturn>} successful operation, no content
18
- */
19
- export default function apps_github_webhook({ client, body, }: AppsGithubWebhookInput): Promise<AppsGithubWebhookReturn>;
20
- export {};
21
- //# sourceMappingURL=apps_github_webhook.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apps_github_webhook.d.ts","sourceRoot":"","sources":["../../../../../src/api/apps/apps_github_webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAKpD,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,KAAK,uBAAuB,GAAG,IAAI,CAAA;AAEnC;;;;;;;;;;;GAWG;AACH,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,IAAI,GACL,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAsB3D"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { ApiToken } from '../../models.js';
3
- interface InternalGetApiTokenForDiscordUserInput {
4
- client?: Client;
5
- discord_id: string;
6
- }
7
- type InternalGetApiTokenForDiscordUserReturn = ApiToken;
8
- /**
9
- * Get an API token for a user by their discord id.
10
- *
11
- * This endpoint allows us to run API calls from our discord bot on behalf of a user. The user must have a discord account linked to their Zoo Account via oauth2 for this to work.
12
- *
13
- * You must be a Zoo admin to use this endpoint.
14
- *
15
- * Tags: meta, hidden
16
- *
17
- * @param params Function parameters.
18
- * @property {Client} [client] Optional client with auth token.
19
- * @property {string} discord_id The user's discord ID. (path)
20
- * @returns {Promise<InternalGetApiTokenForDiscordUserReturn>} successful operation
21
- *
22
- * Possible return types: ApiToken
23
- */
24
- export default function internal_get_api_token_for_discord_user({ client, discord_id, }: InternalGetApiTokenForDiscordUserInput): Promise<InternalGetApiTokenForDiscordUserReturn>;
25
- export {};
26
- //# sourceMappingURL=internal_get_api_token_for_discord_user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal_get_api_token_for_discord_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/meta/internal_get_api_token_for_discord_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,UAAU,sCAAsC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,KAAK,uCAAuC,GAAG,QAAQ,CAAA;AAEvD;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,uCAAuC,CAAC,EACpE,MAAM,EACN,UAAU,GACX,EAAE,sCAAsC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAsB3F"}
@@ -1,32 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { Pager } from '../../pagination.js';
3
- import { OAuth2AppResponseResultsPage, Uuid, CreatedAtSortMode, OAuth2AppResponse } from '../../models.js';
4
- interface ListOauth2AppsForAnyOrgInput {
5
- client?: Client;
6
- id: Uuid;
7
- limit?: number;
8
- page_token?: string;
9
- sort_by?: CreatedAtSortMode;
10
- }
11
- type ListOauth2AppsForAnyOrgReturn = OAuth2AppResponseResultsPage;
12
- /**
13
- * List OAuth 2.0 apps owned by an organization.
14
- *
15
- * This endpoint requires Zoo admin authentication. It returns the target organization's active OAuth apps for admin dashboard inspection.
16
- *
17
- * Tags: oauth2, hidden
18
- *
19
- * @param params Function parameters.
20
- * @property {Client} [client] Optional client with auth token.
21
- * @property {Uuid} id The organization ID. (path)
22
- * @property {number} limit Maximum number of items returned by a single call (query)
23
- * @property {string} page_token Token returned by previous call to retrieve the subsequent page (query)
24
- * @property {CreatedAtSortMode} sort_by (query)
25
- * @returns {Promise<ListOauth2AppsForAnyOrgReturn>} successful operation
26
- *
27
- * Possible return types: OAuth2AppResponseResultsPage
28
- */
29
- export default function list_oauth2_apps_for_any_org({ client, id, limit, page_token, sort_by, }: ListOauth2AppsForAnyOrgInput): Promise<ListOauth2AppsForAnyOrgReturn>;
30
- export declare function list_oauth2_apps_for_any_org_pager(params: ListOauth2AppsForAnyOrgInput): Pager<ListOauth2AppsForAnyOrgInput, ListOauth2AppsForAnyOrgReturn, OAuth2AppResponse>;
31
- export {};
32
- //# sourceMappingURL=list_oauth2_apps_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_oauth2_apps_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/oauth2/list_oauth2_apps_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,4BAA4B,EAC5B,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,UAAU,4BAA4B;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,6BAA6B,GAAG,4BAA4B,CAAA;AAEjE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,4BAA4B,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAyBvE;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,4BAA4B,GACnC,KAAK,CACN,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,CAClB,CAMA"}
@@ -1,32 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { Pager } from '../../pagination.js';
3
- import { OAuth2AppResponseResultsPage, UserIdentifier, CreatedAtSortMode, OAuth2AppResponse } from '../../models.js';
4
- interface ListOauth2AppsForAnyUserInput {
5
- client?: Client;
6
- id: UserIdentifier;
7
- limit?: number;
8
- page_token?: string;
9
- sort_by?: CreatedAtSortMode;
10
- }
11
- type ListOauth2AppsForAnyUserReturn = OAuth2AppResponseResultsPage;
12
- /**
13
- * List OAuth 2.0 apps owned by a user.
14
- *
15
- * This endpoint requires Zoo admin authentication. It returns the target user's active OAuth apps so the admin dashboard can inspect them without impersonating the user.
16
- *
17
- * Tags: oauth2, hidden
18
- *
19
- * @param params Function parameters.
20
- * @property {Client} [client] Optional client with auth token.
21
- * @property {UserIdentifier} id The user's identifier (uuid or email). (path)
22
- * @property {number} limit Maximum number of items returned by a single call (query)
23
- * @property {string} page_token Token returned by previous call to retrieve the subsequent page (query)
24
- * @property {CreatedAtSortMode} sort_by (query)
25
- * @returns {Promise<ListOauth2AppsForAnyUserReturn>} successful operation
26
- *
27
- * Possible return types: OAuth2AppResponseResultsPage
28
- */
29
- export default function list_oauth2_apps_for_any_user({ client, id, limit, page_token, sort_by, }: ListOauth2AppsForAnyUserInput): Promise<ListOauth2AppsForAnyUserReturn>;
30
- export declare function list_oauth2_apps_for_any_user_pager(params: ListOauth2AppsForAnyUserInput): Pager<ListOauth2AppsForAnyUserInput, ListOauth2AppsForAnyUserReturn, OAuth2AppResponse>;
31
- export {};
32
- //# sourceMappingURL=list_oauth2_apps_for_any_user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list_oauth2_apps_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/oauth2/list_oauth2_apps_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,UAAU,6BAA6B;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,cAAc,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,8BAA8B,GAAG,4BAA4B,CAAA;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAA8B,6BAA6B,CAAC,EAC1D,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,6BAA6B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAyBzE;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,6BAA6B,GACpC,KAAK,CACN,6BAA6B,EAC7B,8BAA8B,EAC9B,iBAAiB,CAClB,CAMA"}
@@ -1,24 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { BillingContractView, Uuid } from '../../models.js';
3
- interface GetBillingContractForAnyOrgInput {
4
- client?: Client;
5
- id: Uuid;
6
- }
7
- type GetBillingContractForAnyOrgReturn = BillingContractView;
8
- /**
9
- * Get the billing contract for an organization.
10
- *
11
- * This endpoint requires Zoo admin authentication. It returns the active contract for the organization, or the latest draft when no active contract exists.
12
- *
13
- * Tags: orgs, hidden
14
- *
15
- * @param params Function parameters.
16
- * @property {Client} [client] Optional client with auth token.
17
- * @property {Uuid} id The organization ID. (path)
18
- * @returns {Promise<GetBillingContractForAnyOrgReturn>} successful operation
19
- *
20
- * Possible return types: BillingContractView
21
- */
22
- export default function get_billing_contract_for_any_org({ client, id, }: GetBillingContractForAnyOrgInput): Promise<GetBillingContractForAnyOrgReturn>;
23
- export {};
24
- //# sourceMappingURL=get_billing_contract_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get_billing_contract_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/get_billing_contract_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3D,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,iCAAiC,GAAG,mBAAmB,CAAA;AAE5D;;;;;;;;;;;;;GAaG;AACH,wBAA8B,gCAAgC,CAAC,EAC7D,MAAM,EACN,EAAE,GACH,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAqB/E"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { BillingContractView, Uuid, BillingContractUpsert } from '../../models.js';
3
- interface UpsertBillingContractForAnyOrgInput {
4
- client?: Client;
5
- id: Uuid;
6
- body: BillingContractUpsert;
7
- }
8
- type UpsertBillingContractForAnyOrgReturn = BillingContractView;
9
- /**
10
- * Create or replace the billing contract for an organization.
11
- *
12
- * This endpoint requires Zoo admin authentication. It upserts the contract definition used for admin-managed enterprise billing.
13
- *
14
- * Tags: orgs, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {Uuid} id The organization ID. (path)
19
- * @property {BillingContractUpsert} body Request body payload
20
- * @returns {Promise<UpsertBillingContractForAnyOrgReturn>} successful operation
21
- *
22
- * Possible return types: BillingContractView
23
- */
24
- export default function upsert_billing_contract_for_any_org({ client, id, body, }: UpsertBillingContractForAnyOrgInput): Promise<UpsertBillingContractForAnyOrgReturn>;
25
- export {};
26
- //# sourceMappingURL=upsert_billing_contract_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upsert_billing_contract_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/orgs/upsert_billing_contract_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,mBAAmB,EACnB,IAAI,EACJ,qBAAqB,EACtB,MAAM,iBAAiB,CAAA;AAExB,UAAU,mCAAmC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,qBAAqB,CAAA;CAC5B;AAED,KAAK,oCAAoC,GAAG,mBAAmB,CAAA;AAE/D;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,mCAAmC,CAAC,EAChE,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,mCAAmC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAuBrF"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { CustomerBalance, Uuid } from '../../models.js';
3
- interface GetPaymentBalanceForAnyOrgInput {
4
- client?: Client;
5
- include_total_due?: boolean;
6
- id: Uuid;
7
- }
8
- type GetPaymentBalanceForAnyOrgReturn = CustomerBalance;
9
- /**
10
- * Get balance for an org.
11
- *
12
- * This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified org.
13
- *
14
- * Tags: payments, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {boolean} include_total_due If you would like to return the total due for a user. This makes the API call take longer so it is off by default. (query)
19
- * @property {Uuid} id The organization ID. (path)
20
- * @returns {Promise<GetPaymentBalanceForAnyOrgReturn>} successful operation
21
- *
22
- * Possible return types: CustomerBalance
23
- */
24
- export default function get_payment_balance_for_any_org({ client, include_total_due, id, }: GetPaymentBalanceForAnyOrgInput): Promise<GetPaymentBalanceForAnyOrgReturn>;
25
- export {};
26
- //# sourceMappingURL=get_payment_balance_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get_payment_balance_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/get_payment_balance_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvD,UAAU,+BAA+B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,gCAAgC,GAAG,eAAe,CAAA;AAEvD;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,+BAA+B,CAAC,EAC5D,MAAM,EACN,iBAAiB,EACjB,EAAE,GACH,EAAE,+BAA+B,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAqB7E"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { CustomerBalance, UserIdentifier } from '../../models.js';
3
- interface GetPaymentBalanceForAnyUserInput {
4
- client?: Client;
5
- id: UserIdentifier;
6
- include_total_due?: boolean;
7
- }
8
- type GetPaymentBalanceForAnyUserReturn = CustomerBalance;
9
- /**
10
- * Get balance for an user.
11
- *
12
- * This endpoint requires authentication by a Zoo employee. It gets the balance information for the specified user.
13
- *
14
- * Tags: payments, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {UserIdentifier} id The user's identifier (uuid or email). (path)
19
- * @property {boolean} include_total_due If you would like to return the total due for a user. This makes the API call take longer so it is off by default. (query)
20
- * @returns {Promise<GetPaymentBalanceForAnyUserReturn>} successful operation
21
- *
22
- * Possible return types: CustomerBalance
23
- */
24
- export default function get_payment_balance_for_any_user({ client, id, include_total_due, }: GetPaymentBalanceForAnyUserInput): Promise<GetPaymentBalanceForAnyUserReturn>;
25
- export {};
26
- //# sourceMappingURL=get_payment_balance_for_any_user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/get_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEjE,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,cAAc,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,KAAK,iCAAiC,GAAG,eAAe,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,gCAAgC,CAAC,EAC7D,MAAM,EACN,EAAE,EACF,iBAAiB,GAClB,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAqB/E"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { ZooProductSubscriptions, Uuid, ZooProductSubscriptionsOrgRequest } from '../../models.js';
3
- interface UpdateOrgSubscriptionForAnyOrgInput {
4
- client?: Client;
5
- id: Uuid;
6
- body: ZooProductSubscriptionsOrgRequest;
7
- }
8
- type UpdateOrgSubscriptionForAnyOrgReturn = ZooProductSubscriptions;
9
- /**
10
- * Update the subscription for any org (admin override).
11
- *
12
- * This endpoint requires authentication by a Zoo admin. It updates the subscription for the specified org.
13
- *
14
- * Tags: payments, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {Uuid} id The organization ID. (path)
19
- * @property {ZooProductSubscriptionsOrgRequest} body Request body payload
20
- * @returns {Promise<UpdateOrgSubscriptionForAnyOrgReturn>} successful operation
21
- *
22
- * Possible return types: ZooProductSubscriptions
23
- */
24
- export default function update_org_subscription_for_any_org({ client, id, body, }: UpdateOrgSubscriptionForAnyOrgInput): Promise<UpdateOrgSubscriptionForAnyOrgReturn>;
25
- export {};
26
- //# sourceMappingURL=update_org_subscription_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update_org_subscription_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/update_org_subscription_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,uBAAuB,EACvB,IAAI,EACJ,iCAAiC,EAClC,MAAM,iBAAiB,CAAA;AAExB,UAAU,mCAAmC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,iCAAiC,CAAA;CACxC;AAED,KAAK,oCAAoC,GAAG,uBAAuB,CAAA;AAEnE;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,mCAAmC,CAAC,EAChE,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,mCAAmC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAuBrF"}
@@ -1,28 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { CustomerBalance, Uuid, UpdatePaymentBalance } from '../../models.js';
3
- interface UpdatePaymentBalanceForAnyOrgInput {
4
- client?: Client;
5
- id: Uuid;
6
- include_total_due?: boolean;
7
- body: UpdatePaymentBalance;
8
- }
9
- type UpdatePaymentBalanceForAnyOrgReturn = CustomerBalance;
10
- /**
11
- * Update balance for an org.
12
- *
13
- * This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.
14
- *
15
- * Tags: payments, hidden
16
- *
17
- * @param params Function parameters.
18
- * @property {Client} [client] Optional client with auth token.
19
- * @property {Uuid} id The organization ID. (path)
20
- * @property {boolean} include_total_due If you would like to return the total due for a user. This makes the API call take longer so it is off by default. (query)
21
- * @property {UpdatePaymentBalance} body Request body payload
22
- * @returns {Promise<UpdatePaymentBalanceForAnyOrgReturn>} successful operation
23
- *
24
- * Possible return types: CustomerBalance
25
- */
26
- export default function update_payment_balance_for_any_org({ client, id, include_total_due, body, }: UpdatePaymentBalanceForAnyOrgInput): Promise<UpdatePaymentBalanceForAnyOrgReturn>;
27
- export {};
28
- //# sourceMappingURL=update_payment_balance_for_any_org.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update_payment_balance_for_any_org.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/update_payment_balance_for_any_org.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAE7E,UAAU,kCAAkC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,KAAK,mCAAmC,GAAG,eAAe,CAAA;AAE1D;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,kCAAkC,CAAC,EAC/D,MAAM,EACN,EAAE,EACF,iBAAiB,EACjB,IAAI,GACL,EAAE,kCAAkC,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAuBnF"}
@@ -1,28 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { CustomerBalance, UserIdentifier, UpdatePaymentBalance } from '../../models.js';
3
- interface UpdatePaymentBalanceForAnyUserInput {
4
- client?: Client;
5
- id: UserIdentifier;
6
- include_total_due?: boolean;
7
- body: UpdatePaymentBalance;
8
- }
9
- type UpdatePaymentBalanceForAnyUserReturn = CustomerBalance;
10
- /**
11
- * Update balance for an user.
12
- *
13
- * This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.
14
- *
15
- * Tags: payments, hidden
16
- *
17
- * @param params Function parameters.
18
- * @property {Client} [client] Optional client with auth token.
19
- * @property {UserIdentifier} id The user's identifier (uuid or email). (path)
20
- * @property {boolean} include_total_due If you would like to return the total due for a user. This makes the API call take longer so it is off by default. (query)
21
- * @property {UpdatePaymentBalance} body Request body payload
22
- * @returns {Promise<UpdatePaymentBalanceForAnyUserReturn>} successful operation
23
- *
24
- * Possible return types: CustomerBalance
25
- */
26
- export default function update_payment_balance_for_any_user({ client, id, include_total_due, body, }: UpdatePaymentBalanceForAnyUserInput): Promise<UpdatePaymentBalanceForAnyUserReturn>;
27
- export {};
28
- //# sourceMappingURL=update_payment_balance_for_any_user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update_payment_balance_for_any_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/update_payment_balance_for_any_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAExB,UAAU,mCAAmC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,cAAc,CAAA;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,KAAK,oCAAoC,GAAG,eAAe,CAAA;AAE3D;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,mCAAmC,CAAC,EAChE,MAAM,EACN,EAAE,EACF,iBAAiB,EACjB,IAAI,GACL,EAAE,mCAAmC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAuBrF"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { SubscriptionPlanPriceRecord, PriceUpsertRequest } from '../../models.js';
3
- interface UpsertSubscriptionPlanPriceInput {
4
- client?: Client;
5
- slug: string;
6
- body: PriceUpsertRequest;
7
- }
8
- type UpsertSubscriptionPlanPriceReturn = SubscriptionPlanPriceRecord;
9
- /**
10
- * Create or update a price for a subscription plan.
11
- *
12
- * You must be a Zoo admin to perform this request.
13
- *
14
- * Tags: payments, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {string} slug (path)
19
- * @property {PriceUpsertRequest} body Request body payload
20
- * @returns {Promise<UpsertSubscriptionPlanPriceReturn>} successful operation
21
- *
22
- * Possible return types: SubscriptionPlanPriceRecord
23
- */
24
- export default function upsert_subscription_plan_price({ client, slug, body, }: UpsertSubscriptionPlanPriceInput): Promise<UpsertSubscriptionPlanPriceReturn>;
25
- export {};
26
- //# sourceMappingURL=upsert_subscription_plan_price.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upsert_subscription_plan_price.d.ts","sourceRoot":"","sources":["../../../../../src/api/payments/upsert_subscription_plan_price.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AAExB,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,kBAAkB,CAAA;CACzB;AAED,KAAK,iCAAiC,GAAG,2BAA2B,CAAA;AAEpE;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,8BAA8B,CAAC,EAC3D,MAAM,EACN,IAAI,EACJ,IAAI,GACL,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAuB/E"}
@@ -1,24 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { DiscountCode, StoreCouponParams } from '../../models.js';
3
- interface CreateStoreCouponInput {
4
- client?: Client;
5
- body: StoreCouponParams;
6
- }
7
- type CreateStoreCouponReturn = DiscountCode;
8
- /**
9
- * Create a new store coupon.
10
- *
11
- * This endpoint requires authentication by a Zoo employee. It creates a new store coupon.
12
- *
13
- * Tags: store, hidden
14
- *
15
- * @param params Function parameters.
16
- * @property {Client} [client] Optional client with auth token.
17
- * @property {StoreCouponParams} body Request body payload
18
- * @returns {Promise<CreateStoreCouponReturn>} successful creation
19
- *
20
- * Possible return types: DiscountCode
21
- */
22
- export default function create_store_coupon({ client, body, }: CreateStoreCouponInput): Promise<CreateStoreCouponReturn>;
23
- export {};
24
- //# sourceMappingURL=create_store_coupon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_store_coupon.d.ts","sourceRoot":"","sources":["../../../../../src/api/store/create_store_coupon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEjE,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,iBAAiB,CAAA;CACxB;AAED,KAAK,uBAAuB,GAAG,YAAY,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAA8B,mBAAmB,CAAC,EAChD,MAAM,EACN,IAAI,GACL,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAuB3D"}
@@ -1,26 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { ZooProductSubscriptions, UserIdentifier, ZooProductSubscriptionsUserRequest } from '../../models.js';
3
- interface UpdateSubscriptionForUserInput {
4
- client?: Client;
5
- id: UserIdentifier;
6
- body: ZooProductSubscriptionsUserRequest;
7
- }
8
- type UpdateSubscriptionForUserReturn = ZooProductSubscriptions;
9
- /**
10
- * Update a subscription for a user.
11
- *
12
- * You must be a Zoo admin to perform this request.
13
- *
14
- * Tags: users, hidden
15
- *
16
- * @param params Function parameters.
17
- * @property {Client} [client] Optional client with auth token.
18
- * @property {UserIdentifier} id The user's identifier (uuid or email). (path)
19
- * @property {ZooProductSubscriptionsUserRequest} body Request body payload
20
- * @returns {Promise<UpdateSubscriptionForUserReturn>} successful operation
21
- *
22
- * Possible return types: ZooProductSubscriptions
23
- */
24
- export default function update_subscription_for_user({ client, id, body, }: UpdateSubscriptionForUserInput): Promise<UpdateSubscriptionForUserReturn>;
25
- export {};
26
- //# sourceMappingURL=update_subscription_for_user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update_subscription_for_user.d.ts","sourceRoot":"","sources":["../../../../../src/api/users/update_subscription_for_user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,kCAAkC,EACnC,MAAM,iBAAiB,CAAA;AAExB,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,cAAc,CAAA;IAClB,IAAI,EAAE,kCAAkC,CAAA;CACzC;AAED,KAAK,+BAA+B,GAAG,uBAAuB,CAAA;AAE9D;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAuB3E"}
@@ -1,24 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { UserAdminDetails, UserIdentifier } from '../../models.js';
3
- interface UserAdminDetailsGetInput {
4
- client?: Client;
5
- id: UserIdentifier;
6
- }
7
- type UserAdminDetailsGetReturn = UserAdminDetails;
8
- /**
9
- * Get admin-only details for a user.
10
- *
11
- * Zoo admins can retrieve extended information about any user, while non-admins receive a 404 to avoid leaking the existence of the resource.
12
- *
13
- * Tags: users, hidden
14
- *
15
- * @param params Function parameters.
16
- * @property {Client} [client] Optional client with auth token.
17
- * @property {UserIdentifier} id The user's identifier (uuid or email). (path)
18
- * @returns {Promise<UserAdminDetailsGetReturn>} successful operation
19
- *
20
- * Possible return types: UserAdminDetails
21
- */
22
- export default function user_admin_details_get({ client, id, }: UserAdminDetailsGetInput): Promise<UserAdminDetailsGetReturn>;
23
- export {};
24
- //# sourceMappingURL=user_admin_details_get.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user_admin_details_get.d.ts","sourceRoot":"","sources":["../../../../../src/api/users/user_admin_details_get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAElE,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,cAAc,CAAA;CACnB;AAED,KAAK,yBAAyB,GAAG,gBAAgB,CAAA;AAEjD;;;;;;;;;;;;;GAaG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,EAAE,GACH,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAqB/D"}