@assinafy/cli 2.4.0 → 2.4.1
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/README.en.md +1 -1
- package/dist/api.cjs +53 -25
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +50 -24
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +389 -371
- package/dist/types/api/index.d.ts +1 -1
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/resources/assignments.d.ts.map +1 -1
- package/dist/types/api/resources/authentication.d.ts +1 -1
- package/dist/types/api/resources/authentication.d.ts.map +1 -1
- package/dist/types/api/resources/documents.d.ts.map +1 -1
- package/dist/types/api/resources/oauth.d.ts.map +1 -1
- package/dist/types/api/resources/signers.d.ts.map +1 -1
- package/dist/types/api/resources/workspaces.d.ts.map +1 -1
- package/dist/types/api/utils.d.ts +4 -0
- package/dist/types/api/utils.d.ts.map +1 -1
- package/docs/assignments.md +10 -7
- package/docs/auth.md +1 -1
- package/docs/documents.md +5 -3
- package/docs/fields.md +2 -2
- package/docs/sdk-reference.md +4 -4
- package/docs/users.md +2 -1
- package/docs/workspaces.md +6 -3
- package/package.json +1 -1
|
@@ -18,5 +18,5 @@ export { WorkspaceResource } from './resources/workspaces.js';
|
|
|
18
18
|
export type { WebhookVerifierOptions } from './support/webhook-verifier.js';
|
|
19
19
|
export { WebhookVerifier } from './support/webhook-verifier.js';
|
|
20
20
|
export * from './types.js';
|
|
21
|
-
export { normalizeBaseUrl } from './utils.js';
|
|
21
|
+
export { normalizeBaseUrl, requireDocumentArtifactName, requireSignerImageType } from './utils.js';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAEA,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,aA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AAM,+BAA+B,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/assignments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,WAAW,EACX,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAEf,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/assignments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,WAAW,EACX,qBAAqB,EACrB,wBAA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AAyB,CAC9B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GAClB,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAMlC;CACD"}
|
|
@@ -13,7 +13,7 @@ export declare class AuthenticationResource extends BaseResource {
|
|
|
13
13
|
login(email: string, password: string): Promise<ILoginResponse>;
|
|
14
14
|
/** `POST /authentication/social-login` — exchange a provider token for an Assinafy JWT. */
|
|
15
15
|
socialLogin(payload: {
|
|
16
|
-
provider:
|
|
16
|
+
provider: SocialLoginProvider;
|
|
17
17
|
token: string;
|
|
18
18
|
has_accepted_terms: boolean;
|
|
19
19
|
}): Promise<ILoginResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/authentication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,YAAY;IACvD,wEAAwE;IAClE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAMpE;IAED,2FAA2F;IACrF,WAAW,CAAC,OAAO,EAAE;QAC1B,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/authentication.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,YAAY;IACvD,wEAAwE;IAClE,KAA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"file":"documents.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/documents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,oBAAoB,EAEpB,kCAAkC,EAClC,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EAExB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,IAAI,EACJ,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/documents.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,oBAAoB,EAEpB,kCAAkC,EAClC,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EAExB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,IAAI,EACJ,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,MAAM,aAAa,CAAC;AAYrB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAmBzC,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAC7B;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACtC,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gEAAgE;IAChE,SAAS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OAAO,CAAC,mBAAmB,EAAE,CAAC,CAI/C;IAED;;;;OAIG;IACG,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAKhE;IAED;;;;OAIG;IACG,SAAS,CACd,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,EACrC,OAAO,GAAE,gBAA0B,GACjC,OAAO,CAAC,kBAAkB,CAAC,CAwB7B;IAED,gEAAgE;IAC1D,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQxD;IAED,iDAAiD;IAC3C,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAQtE;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/oauth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AASzC,2FAA2F;AAC3F,qBAAa,aAAc,SAAQ,YAAY;IAC9C,oFAAoF;IAC9E,QAAQ,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAajD;IAED,kFAAkF;IAC5E,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAgBlE;IAED,yFAAyF;IACnF,SAAS,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA6CxF;IAED,oFAAoF;IAC9E,YAAY,CACjB,W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,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAMxE;IAED,6FAA6F;IACvF,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAsB5E;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/workspaces.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,uBAAuB,EACvB,yBAAyB,EAEzB,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,iBAAkB,SAAQ,YAAY;IAClD,8BAA8B;IACxB,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAM1E;IAED,yDAAyD;IACnD,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAI5C;IAED,gCAAgC;IAC1B,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAGxD;IAED,mDAAmD;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAKxD;IAED,yCAAyC;IACnC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAKrD;IAED,kDAAkD;IAC5C,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,yBAA8B,GACrC,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../../src/api/resources/workspaces.ts"],"names":[],"mappings":"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EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAKxF;CACD"}
|
|
@@ -15,6 +15,10 @@ export declare function toSdkError(error: unknown, fallbackMessage: string): Ass
|
|
|
15
15
|
export declare function createNoopLogger(): Logger;
|
|
16
16
|
/** Strip undefined values from a params record (Axios sends `undefined` as literal). */
|
|
17
17
|
export declare function cleanParams(params: Record<string, unknown>): Record<string, unknown>;
|
|
18
|
+
/** Strip nullish values from a JSON request body without renaming any keys. */
|
|
19
|
+
export declare function stripEmpty(body: Record<string, unknown>): Record<string, unknown>;
|
|
20
|
+
/** Append a multipart file part over a copy-free view of the binary data. */
|
|
21
|
+
export declare function appendFilePart(form: FormData, data: Uint8Array, contentType: string, fileName: string): void;
|
|
18
22
|
/** Remove owner credentials from a request that is public or signer-authenticated. */
|
|
19
23
|
export declare function publicRequestConfig(config?: AxiosRequestConfig): AxiosRequestConfig;
|
|
20
24
|
/** Build an isolated signer-access-code request config. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/api/utils.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAY,aAAa,EAAiC,MAAM,aAAa,CAAC;AACrF,OAAO,KAAK,EAGX,oBAAoB,EACpB,oBAAoB,EACpB,MAAM,EACN,MAAM,YAAY,CAAC;AAkBpB;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,CAAC,CAW9D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,GAAG,aAAa,CAoBjF;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,IAAI,MAAM,CAOzC;AAED,wFAAwF;AACxF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,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E,MAAM,GAAG,oBAAoB,CAK/E;AAED,kFAAkF;AAClF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAG7E;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC3C,KAAK,EAAE,CAAC,GAAG,SAAS,EACpB,OAAO,EAAE,SAAS,CAAC,EAAE,GACnB,CAAC,GAAG,SAAS,CAGf;AAMD,kGAAkG;AAClG,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
package/docs/assignments.md
CHANGED
|
@@ -46,10 +46,11 @@ Arguments:
|
|
|
46
46
|
documentId Document ID
|
|
47
47
|
|
|
48
48
|
Options:
|
|
49
|
-
--signer-ids <csv> Comma-separated signer IDs
|
|
50
|
-
--signers <json> JSON array of signer refs
|
|
51
|
-
step, …)
|
|
52
|
-
--method <method> virtual or collect (
|
|
49
|
+
--signer-ids <csv> Comma-separated signer IDs (required)
|
|
50
|
+
--signers <json> JSON array of signer refs, with verification_method,
|
|
51
|
+
step, … (required)
|
|
52
|
+
--method <method> virtual or collect (choices: "virtual", "collect",
|
|
53
|
+
default: "virtual")
|
|
53
54
|
--message <message> Message shown to signers
|
|
54
55
|
--expires-at <iso8601> Expiration timestamp
|
|
55
56
|
--copy-receivers <csv> Comma-separated signer IDs to receive a copy of the
|
|
@@ -71,9 +72,11 @@ Arguments:
|
|
|
71
72
|
documentId Document ID
|
|
72
73
|
|
|
73
74
|
Options:
|
|
74
|
-
--signer-ids <csv> Comma-separated signer IDs
|
|
75
|
-
--signers <json> JSON array of signer refs
|
|
76
|
-
|
|
75
|
+
--signer-ids <csv> Comma-separated signer IDs (required)
|
|
76
|
+
--signers <json> JSON array of signer refs, with verification_method, step,
|
|
77
|
+
… (required)
|
|
78
|
+
--method <method> virtual or collect (choices: "virtual", "collect",
|
|
79
|
+
default: "virtual")
|
|
77
80
|
--entries <json> JSON array of field placement entries, required for
|
|
78
81
|
--method collect
|
|
79
82
|
-h, --help display help for command
|
package/docs/auth.md
CHANGED
|
@@ -50,7 +50,7 @@ Usage: assinafy auth social-login [options]
|
|
|
50
50
|
Exchange a provider token for an Assinafy JWT (no existing credentials required)
|
|
51
51
|
|
|
52
52
|
Options:
|
|
53
|
-
--provider <provider> OAuth provider (
|
|
53
|
+
--provider <provider> OAuth provider (choices: "google")
|
|
54
54
|
--provider-token <token> Provider token (env: ASSINAFY_PROVIDER_TOKEN)
|
|
55
55
|
--accept-terms Accept the platform terms
|
|
56
56
|
-h, --help display help for command
|
package/docs/documents.md
CHANGED
|
@@ -62,7 +62,8 @@ List workspace documents
|
|
|
62
62
|
|
|
63
63
|
Options:
|
|
64
64
|
--status <status> Filter by document status
|
|
65
|
-
--method <method> Filter by signature method (virtual or collect)
|
|
65
|
+
--method <method> Filter by signature method (virtual or collect) (choices:
|
|
66
|
+
"virtual", "collect")
|
|
66
67
|
--tags <ids> Comma-separated tag IDs (AND semantics)
|
|
67
68
|
--page <n> Page number to fetch
|
|
68
69
|
--per-page <n> Items per page
|
|
@@ -344,8 +345,9 @@ Arguments:
|
|
|
344
345
|
id Document ID
|
|
345
346
|
|
|
346
347
|
Options:
|
|
347
|
-
--email <email> Email
|
|
348
|
-
|
|
348
|
+
--email <email> Email address (compatibility overload for older
|
|
349
|
+
deployments)
|
|
350
|
+
--recipient <value> Email address or phone number (production payload)
|
|
349
351
|
--channel <channel> email or whatsapp (default: "email")
|
|
350
352
|
-h, --help display help for command
|
|
351
353
|
```
|
package/docs/fields.md
CHANGED
|
@@ -128,8 +128,8 @@ Validate multiple field values at once
|
|
|
128
128
|
|
|
129
129
|
Options:
|
|
130
130
|
--entries <json> JSON array of { field_id, value } entries
|
|
131
|
-
--signer-access-code <code> Signer access code (
|
|
132
|
-
ASSINAFY_SIGNER_ACCESS_CODE)
|
|
131
|
+
--signer-access-code <code> Signer access code (for signer-side validation)
|
|
132
|
+
(env: ASSINAFY_SIGNER_ACCESS_CODE)
|
|
133
133
|
-h, --help display help for command
|
|
134
134
|
```
|
|
135
135
|
|
package/docs/sdk-reference.md
CHANGED
|
@@ -194,7 +194,7 @@ Assignment payload:
|
|
|
194
194
|
|
|
195
195
|
Production defaults `notification_methods: []` to `['Email']` and sends an invitation. An empty array is not a way to disable delivery. Choose the intended supported channel explicitly before creating an assignment.
|
|
196
196
|
|
|
197
|
-
`buildAssignmentPayload(payload, options?)` is exported for callers that need the same normalization. It resolves synchronously to the JSON assignment body above; no HTTP call occurs. Options are `{ allowSignersWithoutId?: boolean;
|
|
197
|
+
`buildAssignmentPayload(payload, options?)` is exported for callers that need the same normalization. It resolves synchronously to the JSON assignment body above; no HTTP call occurs. Options are `{ allowSignersWithoutId?: boolean; skipDigitalCertificateStepValidation?: boolean }`, both false by default. Both support cost estimation: the first accepts signer descriptors without an `id`, and the second bypasses signing-order and certificate-step checks for estimates. An empty signer list always throws `ValidationError('At least one signer is required')`, in `virtual` and `collect` modes and in cost estimates alike. `create` enforces complete contiguous signing steps from 1 when supplied and requires each digital-certificate signer to be alone in its step. The estimate schema has no `step`, so `estimateCost` passes `skipDigitalCertificateStepValidation` to skip that create-only rule. Assignment list params are pagination plus the compatible `sort?: 'created_at' | '-created_at'`; the runtime endpoint requires the SDK's `accountId` query even though the published parameter table omits it. Assignment `search` is unsupported and rejected locally.
|
|
198
198
|
|
|
199
199
|
`estimateResendCost(documentId, assignmentId, signerId)` sends a POST without a body. Its production result is:
|
|
200
200
|
|
|
@@ -410,7 +410,7 @@ Notification counters can overlap when a request uses multiple delivery channels
|
|
|
410
410
|
| `requestPasswordReset(email)` | [`PUT /authentication/request-password-reset`](./api-reference.md#request-password-reset) | `{ email }` |
|
|
411
411
|
| `resetPassword({ email, token?, new_password })` | [`PUT /authentication/reset-password`](./api-reference.md#reset-password) | `{ email }` |
|
|
412
412
|
| `createApiKey(password)` | [`POST /users/api-keys`](./api-reference.md#create-api-key) | `IApiKeyResponse` |
|
|
413
|
-
| `getApiKey()` | [`GET /users/api-keys`](./api-reference.md#get-api-key) | `
|
|
413
|
+
| `getApiKey()` | [`GET /users/api-keys`](./api-reference.md#get-api-key) | `IMaskedApiKeyResponse`; 404 means no key |
|
|
414
414
|
| `deleteApiKey()` | [`DELETE /users/api-keys`](./api-reference.md#delete-api-key) | `IEmptyResult` (`unknown[]`) |
|
|
415
415
|
|
|
416
416
|
Login/social/reset bootstrap calls can use an unauthenticated client. The published authenticated user endpoints permit either a bearer JWT or `X-Api-Key`; use the credential type appropriate to the account and endpoint policy.
|
|
@@ -515,14 +515,14 @@ Template list params support pagination, published `search`, and compatible `sor
|
|
|
515
515
|
|
|
516
516
|
Registration payload: `{ url: string; email: string; events?: string[]; is_active?: boolean }`. When `events` is omitted the SDK uses `document_ready`, `document_prepared`, `signer_signed_document`, `signer_rejected_document`, and `document_processing_failed`; pass `[]` deliberately for none. Dispatch filters extend pagination with `{ event?, delivered?, from?, to?, sort?: 'created_at' | '-created_at' }`; sort is a compatibility extension. Dispatch `search` is unsupported and rejected locally. The API does not expose a delete-subscription operation; use `inactivate`.
|
|
517
517
|
|
|
518
|
-
Decline operations require a non-empty reason of at most 2,000 Unicode characters. `signers.findByEmail` follows pagination metadata until an exact case-insensitive email match is found or the search is exhausted.
|
|
518
|
+
Decline operations require a non-empty reason of at most 2,000 Unicode characters. `signers.findByEmail` follows pagination metadata until an exact case-insensitive email match is found or the search is exhausted; when a response carries no pagination metadata a partial page ends the search, and the scan is bounded at 100 pages.
|
|
519
519
|
|
|
520
520
|
## Responses, pagination, errors, and binary data
|
|
521
521
|
|
|
522
522
|
- JSON responses with `data` are unwrapped from the API envelope; direct status bodies remain `IStatusResponse`. Paginated calls resolve to `{ data: T[]; meta?: { current_page?, last_page?, per_page?, total? } }`; metadata comes from `X-Pagination-*` headers.
|
|
523
523
|
- Binary methods resolve to Node.js `Buffer`; the SDK is not a browser package. It never writes downloaded data to disk.
|
|
524
524
|
- `ValidationError` means local input validation failed before a request. `ApiError` exposes `statusCode`, `responseData`, `wwwAuthenticate` and `retryAfter`; binary JSON error bodies are decoded before normalization. OAuth responses are flat JSON, and OAuth revocation resolves to `undefined`. `NetworkError` covers timeout/DNS/transport failures. `PartialWorkflowError` reports `documents upload --wait` or a multi-step helper that failed after creating resources and exposes `documentId` and `signerIds`. All extend `AssinafyError`, which exposes `context` and preserves `cause` where available.
|
|
525
|
-
- `normalizeBaseUrl(url)` is exported and removes one trailing slash.
|
|
525
|
+
- `normalizeBaseUrl(url)` is exported and removes one trailing slash. The CLI-facing guards `requireDocumentArtifactName(name)` and `requireSignerImageType(type)` are also exported.
|
|
526
526
|
|
|
527
527
|
Exported error constructors/helpers are `new AssinafyError(message, context?, { cause? }?)`, `new ApiError(message, statusCode, responseData?, { cause?, wwwAuthenticate?, retryAfter? }?)`, `ApiError.fromResponse(statusCode, responseData, headers?)`, `new ValidationError(message?, errors?)`, `new NetworkError(message, { cause? }?)`, and `new PartialWorkflowError(message, { documentId?, signerIds? }, { cause? }?)`. Resource classes and all named request/response types are also exported for dependency injection and type annotations; normal applications should obtain resource instances from `AssinafyClient`.
|
|
528
528
|
|
package/docs/users.md
CHANGED
|
@@ -39,7 +39,8 @@ Usage: assinafy users stats [options]
|
|
|
39
39
|
Show document KPIs across the user's accounts
|
|
40
40
|
|
|
41
41
|
Options:
|
|
42
|
-
--granularity <value> monthly or daily (
|
|
42
|
+
--granularity <value> monthly or daily (choices: "monthly", "daily", default:
|
|
43
|
+
"monthly")
|
|
43
44
|
--month <yyyy-mm> Month required for daily granularity
|
|
44
45
|
-h, --help display help for command
|
|
45
46
|
```
|
package/docs/workspaces.md
CHANGED
|
@@ -31,7 +31,8 @@ Create a workspace (account)
|
|
|
31
31
|
|
|
32
32
|
Options:
|
|
33
33
|
--name <name> Workspace name
|
|
34
|
-
--notification-sender <type> Notification sender: User or Account
|
|
34
|
+
--notification-sender <type> Notification sender: User or Account (choices:
|
|
35
|
+
"User", "Account")
|
|
35
36
|
--primary-color <hex> Primary brand color
|
|
36
37
|
--secondary-color <hex> Secondary brand color
|
|
37
38
|
-h, --help display help for command
|
|
@@ -87,7 +88,8 @@ Arguments:
|
|
|
87
88
|
id Account/workspace ID
|
|
88
89
|
|
|
89
90
|
Options:
|
|
90
|
-
--granularity <value> monthly or daily (
|
|
91
|
+
--granularity <value> monthly or daily (choices: "monthly", "daily", default:
|
|
92
|
+
"monthly")
|
|
91
93
|
--month <yyyy-mm> Month required for daily granularity
|
|
92
94
|
-h, --help display help for command
|
|
93
95
|
```
|
|
@@ -168,7 +170,8 @@ Arguments:
|
|
|
168
170
|
|
|
169
171
|
Options:
|
|
170
172
|
--name <name> New name
|
|
171
|
-
--notification-sender <type> Notification sender: User or Account
|
|
173
|
+
--notification-sender <type> Notification sender: User or Account (choices:
|
|
174
|
+
"User", "Account")
|
|
172
175
|
--primary-color <hex> Primary brand color (pass empty to clear)
|
|
173
176
|
--secondary-color <hex> Secondary brand color (pass empty to clear)
|
|
174
177
|
-h, --help display help for command
|