@factify/sdk 0.3.10 → 0.3.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.
- package/FUNCTIONS.md +6 -4
- package/README.md +46 -33
- package/dist/commonjs/funcs/{apiKeysCreateAPIKey.d.ts → apiKeysCreate.d.ts} +2 -2
- package/dist/commonjs/funcs/apiKeysCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{apiKeysCreateAPIKey.js → apiKeysCreate.js} +3 -3
- package/dist/commonjs/funcs/apiKeysCreate.js.map +1 -0
- package/dist/commonjs/funcs/apiKeysList.d.ts +21 -0
- package/dist/commonjs/funcs/apiKeysList.d.ts.map +1 -0
- package/dist/commonjs/funcs/{apiKeysListAPIKeys.js → apiKeysList.js} +34 -9
- package/dist/commonjs/funcs/apiKeysList.js.map +1 -0
- package/dist/{esm/funcs/apiKeysRevokeAPIKey.d.ts → commonjs/funcs/apiKeysRevoke.d.ts} +2 -2
- package/dist/commonjs/funcs/apiKeysRevoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/{apiKeysRevokeAPIKey.js → apiKeysRevoke.js} +3 -3
- package/dist/commonjs/funcs/apiKeysRevoke.js.map +1 -0
- package/dist/{esm/funcs/organizationsCreateOrganization.d.ts → commonjs/funcs/organizationsCreate.d.ts} +2 -2
- package/dist/commonjs/funcs/{apiKeysCreateAPIKey.d.ts.map → organizationsCreate.d.ts.map} +1 -1
- package/dist/commonjs/funcs/{organizationsCreateOrganization.js → organizationsCreate.js} +3 -3
- package/dist/{esm/funcs/organizationsCreateOrganization.js.map → commonjs/funcs/organizationsCreate.js.map} +1 -1
- package/dist/commonjs/funcs/{organizationsGetOrganization.d.ts → organizationsGet.d.ts} +2 -2
- package/dist/commonjs/funcs/organizationsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsGetOrganization.js → organizationsGet.js} +3 -3
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -0
- package/dist/{esm/funcs/organizationsListOrganizations.d.ts → commonjs/funcs/organizationsList.d.ts} +5 -2
- package/dist/commonjs/funcs/organizationsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationsListOrganizations.js → organizationsList.js} +34 -9
- package/dist/commonjs/funcs/organizationsList.js.map +1 -0
- package/dist/{esm/funcs/versionsGetVersion.d.ts → commonjs/funcs/versionsGet.d.ts} +2 -2
- package/dist/commonjs/funcs/versionsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/{versionsGetVersion.js → versionsGet.js} +3 -3
- package/dist/commonjs/funcs/versionsGet.js.map +1 -0
- package/dist/{esm/funcs/apiKeysListAPIKeys.d.ts → commonjs/funcs/versionsUpdate.d.ts} +4 -4
- package/dist/commonjs/funcs/versionsUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/{versionsUpdateVersion.js → versionsUpdate.js} +3 -3
- package/dist/commonjs/funcs/versionsUpdate.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/createorganizationrequest.d.ts +2 -2
- package/dist/commonjs/models/components/createorganizationrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.js +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.js.map +1 -1
- package/dist/commonjs/sdk/apikeys.d.ts +6 -3
- package/dist/commonjs/sdk/apikeys.d.ts.map +1 -1
- package/dist/commonjs/sdk/apikeys.js +10 -9
- package/dist/commonjs/sdk/apikeys.js.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +6 -3
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +10 -9
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/versions.d.ts +2 -2
- package/dist/commonjs/sdk/versions.d.ts.map +1 -1
- package/dist/commonjs/sdk/versions.js +6 -6
- package/dist/commonjs/sdk/versions.js.map +1 -1
- package/dist/esm/funcs/{apiKeysCreateAPIKey.d.ts → apiKeysCreate.d.ts} +2 -2
- package/dist/esm/funcs/apiKeysCreate.d.ts.map +1 -0
- package/dist/esm/funcs/{apiKeysCreateAPIKey.js → apiKeysCreate.js} +2 -2
- package/dist/esm/funcs/apiKeysCreate.js.map +1 -0
- package/dist/esm/funcs/apiKeysList.d.ts +21 -0
- package/dist/esm/funcs/apiKeysList.d.ts.map +1 -0
- package/dist/esm/funcs/{apiKeysListAPIKeys.js → apiKeysList.js} +33 -8
- package/dist/esm/funcs/apiKeysList.js.map +1 -0
- package/dist/{commonjs/funcs/apiKeysRevokeAPIKey.d.ts → esm/funcs/apiKeysRevoke.d.ts} +2 -2
- package/dist/esm/funcs/apiKeysRevoke.d.ts.map +1 -0
- package/dist/esm/funcs/{apiKeysRevokeAPIKey.js → apiKeysRevoke.js} +2 -2
- package/dist/esm/funcs/apiKeysRevoke.js.map +1 -0
- package/dist/{commonjs/funcs/organizationsCreateOrganization.d.ts → esm/funcs/organizationsCreate.d.ts} +2 -2
- package/dist/esm/funcs/{apiKeysCreateAPIKey.d.ts.map → organizationsCreate.d.ts.map} +1 -1
- package/dist/esm/funcs/{organizationsCreateOrganization.js → organizationsCreate.js} +2 -2
- package/dist/esm/funcs/{apiKeysRevokeAPIKey.js.map → organizationsCreate.js.map} +1 -1
- package/dist/esm/funcs/{organizationsGetOrganization.d.ts → organizationsGet.d.ts} +2 -2
- package/dist/esm/funcs/organizationsGet.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsGetOrganization.js → organizationsGet.js} +2 -2
- package/dist/esm/funcs/organizationsGet.js.map +1 -0
- package/dist/{commonjs/funcs/organizationsListOrganizations.d.ts → esm/funcs/organizationsList.d.ts} +5 -2
- package/dist/esm/funcs/organizationsList.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationsListOrganizations.js → organizationsList.js} +33 -8
- package/dist/esm/funcs/organizationsList.js.map +1 -0
- package/dist/{commonjs/funcs/versionsGetVersion.d.ts → esm/funcs/versionsGet.d.ts} +2 -2
- package/dist/esm/funcs/versionsGet.d.ts.map +1 -0
- package/dist/esm/funcs/{versionsGetVersion.js → versionsGet.js} +2 -2
- package/dist/esm/funcs/versionsGet.js.map +1 -0
- package/dist/{commonjs/funcs/apiKeysListAPIKeys.d.ts → esm/funcs/versionsUpdate.d.ts} +4 -4
- package/dist/esm/funcs/versionsUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/{versionsUpdateVersion.js → versionsUpdate.js} +2 -2
- package/dist/esm/funcs/versionsUpdate.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/createorganizationrequest.d.ts +2 -2
- package/dist/esm/models/components/createorganizationrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createorganizationrequest.js +1 -1
- package/dist/esm/models/components/createorganizationrequest.js.map +1 -1
- package/dist/esm/sdk/apikeys.d.ts +6 -3
- package/dist/esm/sdk/apikeys.d.ts.map +1 -1
- package/dist/esm/sdk/apikeys.js +10 -9
- package/dist/esm/sdk/apikeys.js.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +6 -3
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +10 -9
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/versions.d.ts +2 -2
- package/dist/esm/sdk/versions.d.ts.map +1 -1
- package/dist/esm/sdk/versions.js +6 -6
- package/dist/esm/sdk/versions.js.map +1 -1
- package/examples/{apiKeysListAPIKeys.example.ts → apiKeysList.example.ts} +5 -3
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/openapi.json +55 -20
- package/package.json +1 -1
- package/src/funcs/{apiKeysCreateAPIKey.ts → apiKeysCreate.ts} +1 -1
- package/src/funcs/{apiKeysListAPIKeys.ts → apiKeysList.ts} +91 -29
- package/src/funcs/{apiKeysRevokeAPIKey.ts → apiKeysRevoke.ts} +1 -1
- package/src/funcs/{organizationsCreateOrganization.ts → organizationsCreate.ts} +1 -1
- package/src/funcs/{organizationsGetOrganization.ts → organizationsGet.ts} +1 -1
- package/src/funcs/{organizationsListOrganizations.ts → organizationsList.ts} +91 -29
- package/src/funcs/{versionsGetVersion.ts → versionsGet.ts} +1 -1
- package/src/funcs/{versionsUpdateVersion.ts → versionsUpdate.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/createorganizationrequest.ts +3 -3
- package/src/sdk/apikeys.ts +11 -10
- package/src/sdk/organizations.ts +13 -10
- package/src/sdk/versions.ts +6 -6
- package/dist/commonjs/funcs/apiKeysCreateAPIKey.js.map +0 -1
- package/dist/commonjs/funcs/apiKeysListAPIKeys.d.ts.map +0 -1
- package/dist/commonjs/funcs/apiKeysListAPIKeys.js.map +0 -1
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.d.ts.map +0 -1
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.js.map +0 -1
- package/dist/commonjs/funcs/organizationsCreateOrganization.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsCreateOrganization.js.map +0 -1
- package/dist/commonjs/funcs/organizationsGetOrganization.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsGetOrganization.js.map +0 -1
- package/dist/commonjs/funcs/organizationsListOrganizations.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationsListOrganizations.js.map +0 -1
- package/dist/commonjs/funcs/versionsGetVersion.d.ts.map +0 -1
- package/dist/commonjs/funcs/versionsGetVersion.js.map +0 -1
- package/dist/commonjs/funcs/versionsUpdateVersion.d.ts +0 -18
- package/dist/commonjs/funcs/versionsUpdateVersion.d.ts.map +0 -1
- package/dist/commonjs/funcs/versionsUpdateVersion.js.map +0 -1
- package/dist/esm/funcs/apiKeysCreateAPIKey.js.map +0 -1
- package/dist/esm/funcs/apiKeysListAPIKeys.d.ts.map +0 -1
- package/dist/esm/funcs/apiKeysListAPIKeys.js.map +0 -1
- package/dist/esm/funcs/apiKeysRevokeAPIKey.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsCreateOrganization.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsGetOrganization.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsGetOrganization.js.map +0 -1
- package/dist/esm/funcs/organizationsListOrganizations.d.ts.map +0 -1
- package/dist/esm/funcs/organizationsListOrganizations.js.map +0 -1
- package/dist/esm/funcs/versionsGetVersion.d.ts.map +0 -1
- package/dist/esm/funcs/versionsGetVersion.js.map +0 -1
- package/dist/esm/funcs/versionsUpdateVersion.d.ts +0 -18
- package/dist/esm/funcs/versionsUpdateVersion.d.ts.map +0 -1
- package/dist/esm/funcs/versionsUpdateVersion.js.map +0 -1
package/dist/esm/sdk/apikeys.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { apiKeysCreate } from "../funcs/apiKeysCreate.js";
|
|
5
|
+
import { apiKeysList } from "../funcs/apiKeysList.js";
|
|
6
|
+
import { apiKeysRevoke } from "../funcs/apiKeysRevoke.js";
|
|
7
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
9
10
|
export class APIKeys extends ClientSDK {
|
|
10
11
|
/**
|
|
11
12
|
* List API keys
|
|
@@ -13,8 +14,8 @@ export class APIKeys extends ClientSDK {
|
|
|
13
14
|
* @remarks
|
|
14
15
|
* Lists API keys for an organization.
|
|
15
16
|
*/
|
|
16
|
-
async
|
|
17
|
-
return
|
|
17
|
+
async list(request, options) {
|
|
18
|
+
return unwrapResultIterator(apiKeysList(this, request, options));
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Create an API key
|
|
@@ -22,8 +23,8 @@ export class APIKeys extends ClientSDK {
|
|
|
22
23
|
* @remarks
|
|
23
24
|
* Creates a new API key for the specified organization. The secret is only returned once in the response and cannot be retrieved later.
|
|
24
25
|
*/
|
|
25
|
-
async
|
|
26
|
-
return unwrapAsync(
|
|
26
|
+
async create(request, options) {
|
|
27
|
+
return unwrapAsync(apiKeysCreate(this, request, options));
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Revoke an API key
|
|
@@ -31,8 +32,8 @@ export class APIKeys extends ClientSDK {
|
|
|
31
32
|
* @remarks
|
|
32
33
|
* Revokes an API key, immediately preventing it from being used for authentication.
|
|
33
34
|
*/
|
|
34
|
-
async
|
|
35
|
-
return unwrapAsync(
|
|
35
|
+
async revoke(request, options) {
|
|
36
|
+
return unwrapAsync(apiKeysRevoke(this, request, options));
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
//# sourceMappingURL=apikeys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeys.js","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apikeys.js","sourceRoot":"","sources":["../../../src/sdk/apikeys.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAsC,EACtC,OAAwB;QAExB,OAAO,oBAAoB,CAAC,WAAW,CACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,aAAa,CAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,WAAW,CAAC,aAAa,CAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
4
5
|
export declare class Organizations extends ClientSDK {
|
|
5
6
|
/**
|
|
6
7
|
* List organizations
|
|
@@ -8,20 +9,22 @@ export declare class Organizations extends ClientSDK {
|
|
|
8
9
|
* @remarks
|
|
9
10
|
* List organizations the caller has access to.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
list(request?: operations.ListOrganizationsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListOrganizationsResponse, {
|
|
13
|
+
cursor: string;
|
|
14
|
+
}>>;
|
|
12
15
|
/**
|
|
13
16
|
* Create an organization
|
|
14
17
|
*
|
|
15
18
|
* @remarks
|
|
16
19
|
* Creates a new organization. The authenticated user becomes the organization owner.
|
|
17
20
|
*/
|
|
18
|
-
|
|
21
|
+
create(request: components.CreateOrganizationRequest, options?: RequestOptions): Promise<operations.CreateOrganizationResponse>;
|
|
19
22
|
/**
|
|
20
23
|
* Retrieve an organization
|
|
21
24
|
*
|
|
22
25
|
* @remarks
|
|
23
26
|
* Retrieve an organization by ID.
|
|
24
27
|
*/
|
|
25
|
-
|
|
28
|
+
get(request: operations.GetOrganizationRequest, options?: RequestOptions): Promise<operations.GetOrganizationResponse>;
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,wBAAwB,GAAG,SAAS,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,yBAAyB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CACvE;IAQD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAO/C"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { organizationsCreate } from "../funcs/organizationsCreate.js";
|
|
5
|
+
import { organizationsGet } from "../funcs/organizationsGet.js";
|
|
6
|
+
import { organizationsList } from "../funcs/organizationsList.js";
|
|
7
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
import { unwrapResultIterator } from "../types/operations.js";
|
|
9
10
|
export class Organizations extends ClientSDK {
|
|
10
11
|
/**
|
|
11
12
|
* List organizations
|
|
@@ -13,8 +14,8 @@ export class Organizations extends ClientSDK {
|
|
|
13
14
|
* @remarks
|
|
14
15
|
* List organizations the caller has access to.
|
|
15
16
|
*/
|
|
16
|
-
async
|
|
17
|
-
return
|
|
17
|
+
async list(request, options) {
|
|
18
|
+
return unwrapResultIterator(organizationsList(this, request, options));
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Create an organization
|
|
@@ -22,8 +23,8 @@ export class Organizations extends ClientSDK {
|
|
|
22
23
|
* @remarks
|
|
23
24
|
* Creates a new organization. The authenticated user becomes the organization owner.
|
|
24
25
|
*/
|
|
25
|
-
async
|
|
26
|
-
return unwrapAsync(
|
|
26
|
+
async create(request, options) {
|
|
27
|
+
return unwrapAsync(organizationsCreate(this, request, options));
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* Retrieve an organization
|
|
@@ -31,8 +32,8 @@ export class Organizations extends ClientSDK {
|
|
|
31
32
|
* @remarks
|
|
32
33
|
* Retrieve an organization by ID.
|
|
33
34
|
*/
|
|
34
|
-
async
|
|
35
|
-
return unwrapAsync(
|
|
35
|
+
async get(request, options) {
|
|
36
|
+
return unwrapAsync(organizationsGet(this, request, options));
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
//# sourceMappingURL=organizations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAyD,EACzD,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,iBAAiB,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,WAAW,CAAC,mBAAmB,CACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAA0C,EAC1C,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -24,13 +24,13 @@ export declare class Versions extends ClientSDK {
|
|
|
24
24
|
* @remarks
|
|
25
25
|
* Retrieve a specific version by ID.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
get(request: operations.GetVersionRequest, options?: RequestOptions): Promise<operations.GetVersionResponse>;
|
|
28
28
|
/**
|
|
29
29
|
* Update a version
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
32
|
* Update version title and description.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
update(request: operations.UpdateVersionRequest, options?: RequestOptions): Promise<operations.UpdateVersionResponse>;
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/sdk/versions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,4BAA4B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/sdk/versions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,4BAA4B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;CAO7C"}
|
package/dist/esm/sdk/versions.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import { versionsCreate } from "../funcs/versionsCreate.js";
|
|
5
|
-
import {
|
|
5
|
+
import { versionsGet } from "../funcs/versionsGet.js";
|
|
6
6
|
import { versionsList } from "../funcs/versionsList.js";
|
|
7
|
-
import {
|
|
7
|
+
import { versionsUpdate } from "../funcs/versionsUpdate.js";
|
|
8
8
|
import { ClientSDK } from "../lib/sdks.js";
|
|
9
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
10
10
|
import { unwrapResultIterator } from "../types/operations.js";
|
|
@@ -33,8 +33,8 @@ export class Versions extends ClientSDK {
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* Retrieve a specific version by ID.
|
|
35
35
|
*/
|
|
36
|
-
async
|
|
37
|
-
return unwrapAsync(
|
|
36
|
+
async get(request, options) {
|
|
37
|
+
return unwrapAsync(versionsGet(this, request, options));
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Update a version
|
|
@@ -42,8 +42,8 @@ export class Versions extends ClientSDK {
|
|
|
42
42
|
* @remarks
|
|
43
43
|
* Update version title and description.
|
|
44
44
|
*/
|
|
45
|
-
async
|
|
46
|
-
return unwrapAsync(
|
|
45
|
+
async update(request, options) {
|
|
46
|
+
return unwrapAsync(versionsUpdate(this, request, options));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/sdk/versions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/sdk/versions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA+C,EAC/C,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,YAAY,CACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,WAAW,CAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @factify/sdk SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx
|
|
11
|
+
* npm run build && npx tsx apiKeysList.example.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { Factify } from "@factify/sdk";
|
|
@@ -18,11 +18,13 @@ const factify = new Factify({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
async function main() {
|
|
21
|
-
const result = await factify.apiKeys.
|
|
21
|
+
const result = await factify.apiKeys.list({
|
|
22
22
|
organizationId: "<id>",
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
for await (const page of result) {
|
|
26
|
+
console.log(page);
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
main().catch(console.error);
|
package/jsr.json
CHANGED
package/openapi.json
CHANGED
|
@@ -403,6 +403,7 @@
|
|
|
403
403
|
},
|
|
404
404
|
"owner_user_id": {
|
|
405
405
|
"description": "Owner user ID. If not provided, the authenticated user becomes the owner.\n Authorization: Specifying a different user requires system maintainer role.\n Required when the caller is a service account (service accounts cannot own organizations).\n Pattern: user_[0-9a-hjkmnp-tv-z]{26}",
|
|
406
|
+
"nullable": true,
|
|
406
407
|
"pattern": "^user_[0-9a-hjkmnp-tv-z]{26}$",
|
|
407
408
|
"title": "owner_user_id",
|
|
408
409
|
"type": "string"
|
|
@@ -1528,11 +1529,25 @@
|
|
|
1528
1529
|
"tags": [
|
|
1529
1530
|
"API Keys"
|
|
1530
1531
|
],
|
|
1532
|
+
"x-speakeasy-pagination": {
|
|
1533
|
+
"inputs": [
|
|
1534
|
+
{
|
|
1535
|
+
"in": "parameters",
|
|
1536
|
+
"name": "page_token",
|
|
1537
|
+
"type": "cursor"
|
|
1538
|
+
}
|
|
1539
|
+
],
|
|
1540
|
+
"outputs": {
|
|
1541
|
+
"nextCursor": "$.pagination.next_page_token"
|
|
1542
|
+
},
|
|
1543
|
+
"type": "cursor"
|
|
1544
|
+
},
|
|
1545
|
+
"x-speakeasy-name-override": "list",
|
|
1531
1546
|
"x-codeSamples": [
|
|
1532
1547
|
{
|
|
1533
1548
|
"lang": "typescript",
|
|
1534
1549
|
"label": "listApiKeys",
|
|
1535
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.
|
|
1550
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.list({\n organizationId: \"\u003cid\u003e\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
1536
1551
|
}
|
|
1537
1552
|
]
|
|
1538
1553
|
},
|
|
@@ -1583,11 +1598,12 @@
|
|
|
1583
1598
|
"tags": [
|
|
1584
1599
|
"API Keys"
|
|
1585
1600
|
],
|
|
1601
|
+
"x-speakeasy-name-override": "create",
|
|
1586
1602
|
"x-codeSamples": [
|
|
1587
1603
|
{
|
|
1588
1604
|
"lang": "typescript",
|
|
1589
1605
|
"label": "createApiKey",
|
|
1590
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.
|
|
1606
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.create({\n name: \"\u003cvalue\u003e\",\n organizationId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1591
1607
|
}
|
|
1592
1608
|
]
|
|
1593
1609
|
}
|
|
@@ -1668,11 +1684,12 @@
|
|
|
1668
1684
|
"tags": [
|
|
1669
1685
|
"API Keys"
|
|
1670
1686
|
],
|
|
1687
|
+
"x-speakeasy-name-override": "revoke",
|
|
1671
1688
|
"x-codeSamples": [
|
|
1672
1689
|
{
|
|
1673
1690
|
"lang": "typescript",
|
|
1674
1691
|
"label": "revokeApiKey",
|
|
1675
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.
|
|
1692
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.revoke({\n apiKeyId: \"\u003cid\u003e\",\n body: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1676
1693
|
}
|
|
1677
1694
|
]
|
|
1678
1695
|
}
|
|
@@ -1805,20 +1822,20 @@
|
|
|
1805
1822
|
"tags": [
|
|
1806
1823
|
"Documents"
|
|
1807
1824
|
],
|
|
1808
|
-
"x-speakeasy-name-override": "list",
|
|
1809
1825
|
"x-speakeasy-pagination": {
|
|
1810
|
-
"type": "cursor",
|
|
1811
1826
|
"inputs": [
|
|
1812
1827
|
{
|
|
1813
|
-
"name": "page_token",
|
|
1814
1828
|
"in": "parameters",
|
|
1829
|
+
"name": "page_token",
|
|
1815
1830
|
"type": "cursor"
|
|
1816
1831
|
}
|
|
1817
1832
|
],
|
|
1818
1833
|
"outputs": {
|
|
1819
1834
|
"nextCursor": "$.pagination.next_page_token"
|
|
1820
|
-
}
|
|
1835
|
+
},
|
|
1836
|
+
"type": "cursor"
|
|
1821
1837
|
},
|
|
1838
|
+
"x-speakeasy-name-override": "list",
|
|
1822
1839
|
"x-codeSamples": [
|
|
1823
1840
|
{
|
|
1824
1841
|
"lang": "typescript",
|
|
@@ -2175,20 +2192,20 @@
|
|
|
2175
2192
|
"tags": [
|
|
2176
2193
|
"Policies"
|
|
2177
2194
|
],
|
|
2178
|
-
"x-speakeasy-name-override": "list",
|
|
2179
2195
|
"x-speakeasy-pagination": {
|
|
2180
|
-
"type": "cursor",
|
|
2181
2196
|
"inputs": [
|
|
2182
2197
|
{
|
|
2183
|
-
"name": "page_token",
|
|
2184
2198
|
"in": "parameters",
|
|
2199
|
+
"name": "page_token",
|
|
2185
2200
|
"type": "cursor"
|
|
2186
2201
|
}
|
|
2187
2202
|
],
|
|
2188
2203
|
"outputs": {
|
|
2189
2204
|
"nextCursor": "$.pagination.next_page_token"
|
|
2190
|
-
}
|
|
2205
|
+
},
|
|
2206
|
+
"type": "cursor"
|
|
2191
2207
|
},
|
|
2208
|
+
"x-speakeasy-name-override": "list",
|
|
2192
2209
|
"x-codeSamples": [
|
|
2193
2210
|
{
|
|
2194
2211
|
"lang": "typescript",
|
|
@@ -2432,20 +2449,20 @@
|
|
|
2432
2449
|
"tags": [
|
|
2433
2450
|
"Versions"
|
|
2434
2451
|
],
|
|
2435
|
-
"x-speakeasy-name-override": "list",
|
|
2436
2452
|
"x-speakeasy-pagination": {
|
|
2437
|
-
"type": "cursor",
|
|
2438
2453
|
"inputs": [
|
|
2439
2454
|
{
|
|
2440
|
-
"name": "page_token",
|
|
2441
2455
|
"in": "parameters",
|
|
2456
|
+
"name": "page_token",
|
|
2442
2457
|
"type": "cursor"
|
|
2443
2458
|
}
|
|
2444
2459
|
],
|
|
2445
2460
|
"outputs": {
|
|
2446
2461
|
"nextCursor": "$.pagination.next_page_token"
|
|
2447
|
-
}
|
|
2462
|
+
},
|
|
2463
|
+
"type": "cursor"
|
|
2448
2464
|
},
|
|
2465
|
+
"x-speakeasy-name-override": "list",
|
|
2449
2466
|
"x-codeSamples": [
|
|
2450
2467
|
{
|
|
2451
2468
|
"lang": "typescript",
|
|
@@ -2588,11 +2605,25 @@
|
|
|
2588
2605
|
"tags": [
|
|
2589
2606
|
"Organizations"
|
|
2590
2607
|
],
|
|
2608
|
+
"x-speakeasy-pagination": {
|
|
2609
|
+
"inputs": [
|
|
2610
|
+
{
|
|
2611
|
+
"in": "parameters",
|
|
2612
|
+
"name": "page_token",
|
|
2613
|
+
"type": "cursor"
|
|
2614
|
+
}
|
|
2615
|
+
],
|
|
2616
|
+
"outputs": {
|
|
2617
|
+
"nextCursor": "$.pagination.next_page_token"
|
|
2618
|
+
},
|
|
2619
|
+
"type": "cursor"
|
|
2620
|
+
},
|
|
2621
|
+
"x-speakeasy-name-override": "list",
|
|
2591
2622
|
"x-codeSamples": [
|
|
2592
2623
|
{
|
|
2593
2624
|
"lang": "typescript",
|
|
2594
2625
|
"label": "listOrganizations",
|
|
2595
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.
|
|
2626
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.list();\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
2596
2627
|
}
|
|
2597
2628
|
]
|
|
2598
2629
|
},
|
|
@@ -2643,11 +2674,12 @@
|
|
|
2643
2674
|
"tags": [
|
|
2644
2675
|
"Organizations"
|
|
2645
2676
|
],
|
|
2677
|
+
"x-speakeasy-name-override": "create",
|
|
2646
2678
|
"x-codeSamples": [
|
|
2647
2679
|
{
|
|
2648
2680
|
"lang": "typescript",
|
|
2649
2681
|
"label": "createOrganization",
|
|
2650
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.
|
|
2682
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.create({\n name: \"\u003cvalue\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2651
2683
|
}
|
|
2652
2684
|
]
|
|
2653
2685
|
}
|
|
@@ -2704,11 +2736,12 @@
|
|
|
2704
2736
|
"tags": [
|
|
2705
2737
|
"Organizations"
|
|
2706
2738
|
],
|
|
2739
|
+
"x-speakeasy-name-override": "get",
|
|
2707
2740
|
"x-codeSamples": [
|
|
2708
2741
|
{
|
|
2709
2742
|
"lang": "typescript",
|
|
2710
2743
|
"label": "getOrganization",
|
|
2711
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.
|
|
2744
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.get({\n organizationId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2712
2745
|
}
|
|
2713
2746
|
]
|
|
2714
2747
|
}
|
|
@@ -2765,11 +2798,12 @@
|
|
|
2765
2798
|
"tags": [
|
|
2766
2799
|
"Versions"
|
|
2767
2800
|
],
|
|
2801
|
+
"x-speakeasy-name-override": "get",
|
|
2768
2802
|
"x-codeSamples": [
|
|
2769
2803
|
{
|
|
2770
2804
|
"lang": "typescript",
|
|
2771
2805
|
"label": "getVersion",
|
|
2772
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.
|
|
2806
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.get({\n versionId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2773
2807
|
}
|
|
2774
2808
|
]
|
|
2775
2809
|
},
|
|
@@ -2852,11 +2886,12 @@
|
|
|
2852
2886
|
"tags": [
|
|
2853
2887
|
"Versions"
|
|
2854
2888
|
],
|
|
2889
|
+
"x-speakeasy-name-override": "update",
|
|
2855
2890
|
"x-codeSamples": [
|
|
2856
2891
|
{
|
|
2857
2892
|
"lang": "typescript",
|
|
2858
2893
|
"label": "updateVersion",
|
|
2859
|
-
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.
|
|
2894
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.update({\n versionId: \"\u003cid\u003e\",\n body: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2860
2895
|
}
|
|
2861
2896
|
]
|
|
2862
2897
|
}
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
* @remarks
|
|
34
34
|
* Creates a new API key for the specified organization. The secret is only returned once in the response and cannot be retrieved later.
|
|
35
35
|
*/
|
|
36
|
-
export function
|
|
36
|
+
export function apiKeysCreate(
|
|
37
37
|
client: FactifyCore,
|
|
38
38
|
request: components.CreateApiKeyRequest,
|
|
39
39
|
options?: RequestOptions,
|