@assinafy/cli 2.4.0 → 2.4.2
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 +14 -11
- package/README.md +11 -2
- package/dist/api.cjs +61 -26
- package/dist/api.cjs.map +1 -1
- package/dist/api.js +58 -25
- package/dist/api.js.map +1 -1
- package/dist/cli.cjs +438 -391
- 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/api-operations.json +1 -1
- package/docs/api-reference.md +1 -5
- 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/migration-v2.md +4 -3
- package/docs/oauth-guide.md +4 -4
- package/docs/oauth.md +4 -4
- package/docs/sdk-reference.md +7 -7
- package/docs/signers.md +1 -1
- package/docs/users.md +2 -1
- package/docs/workspaces.md +6 -3
- package/install.ps1 +10 -0
- package/install.sh +3 -0
- 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,aAAa,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+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,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";AAEA,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAA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B,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,wBAAwB,EACxB,yBAAyB,EACzB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EAEf,MAAM,aAAa,CAAC;AASrB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,wBAAwB,EACjC,OAAO,GAAE;IACR,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oCAAoC,CAAC,EAAE,OAAO,CAAC;CAC1C,GACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqCzB;AA6DD,qBAAa,kBAAmB,SAAQ,YAAY;IACnD;;;;;;OAMG;IACG,IAAI,CACT,MAAM,GAAE,qBAA0B,EAClC,SAAS,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAOvC;IAED,kDAAkD;IAC5C,MAAM,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CAYpC;IAED,iEAAiE;IAC3D,YAAY,CACjB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,wBAAwB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAWhC;IAED;;;;OAIG;IACG,eAAe,CACpB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAAG,IAAI,GACtB,OAAO,CAAC,WAAW,CAAC,CAUtB;IAED,0DAA0D;IACpD,kBAAkB,CACvB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,oBAAoB,CAAC,CAO/B;IAED,4DAA4D;IACtD,kBAAkB,CACvB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,CAAC,CAS9B;IAED;;;OAGG;IACG,yBAAyB,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,qBAAq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AK,CAAC,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAM7B;CACD"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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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,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,qBAAqB,CAAC,CAOhC;IAED;;;OAGG;IACG,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAK3D;IAED;;;OAGG;IACG,QAAQ,IAAI,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,E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,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAI7F;IAED;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,KAAK,CAAC,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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E,IAAI,CASN;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,oBAAyB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAW9F;AAED,0EAA0E;AAC1E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,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/api-operations.json
CHANGED
package/docs/api-reference.md
CHANGED
|
@@ -7,7 +7,7 @@ The renderer reuses a generic 400 envelope for several non-400 errors; top-level
|
|
|
7
7
|
- OpenAPI: 3.0.0
|
|
8
8
|
- API document version: 1.0.0
|
|
9
9
|
- Operations: 93
|
|
10
|
-
- Contract SHA-256: `
|
|
10
|
+
- Contract SHA-256: `68e588d7c7b648f55e886e60d8cbfddc8ae640fbbfe1f680471b5bfaf6a1fec1`
|
|
11
11
|
|
|
12
12
|
## Accounts
|
|
13
13
|
|
|
@@ -4730,8 +4730,6 @@ Implements the RFC 6749 §5.1/§5.2 token-endpoint body contract in
|
|
|
4730
4730
|
|
|
4731
4731
|
#### Request Body (required)
|
|
4732
4732
|
|
|
4733
|
-
The [OAuth Integration Guide](https://api.assinafy.com.br/v1/docs) specifies form encoding, which the SDK and CLI send; the server also accepts JSON.
|
|
4734
|
-
|
|
4735
4733
|
Fields (`application/x-www-form-urlencoded`):
|
|
4736
4734
|
|
|
4737
4735
|
- `grant_type` (string, required) — `urn:ietf:params:oauth:grant-type:token-exchange` is for internal service clients only (Assinafy's own MCP server) — an ordinary confidential or public client authenticates with it and always gets `invalid_client`, exactly as an unrecognized client would. Everyday integrators use `authorization_code` and `refresh_token`.
|
|
@@ -4818,8 +4816,6 @@ Revokes an access or refresh token. Every token outcome always returns 200 — i
|
|
|
4818
4816
|
|
|
4819
4817
|
#### Request Body (required)
|
|
4820
4818
|
|
|
4821
|
-
The [OAuth Integration Guide](https://api.assinafy.com.br/v1/docs) specifies form encoding, which the SDK and CLI send; the server also accepts JSON.
|
|
4822
|
-
|
|
4823
4819
|
Fields (`application/x-www-form-urlencoded`):
|
|
4824
4820
|
|
|
4825
4821
|
- `token` (string, required)
|
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/migration-v2.md
CHANGED
|
@@ -15,9 +15,10 @@ Version 2 publishes the Node.js SDK at `@assinafy/cli/api` and requires Node.js
|
|
|
15
15
|
verification and notification. Explicit signer controls still take precedence.
|
|
16
16
|
- `uploadAndRequestSignatures` rejects with `PartialWorkflowError` when it fails
|
|
17
17
|
after the upload, exposing the `documentId` and `signerIds` it already created
|
|
18
|
-
so callers can
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
so callers can inspect remote state and resume. Signer IDs may have been reused;
|
|
19
|
+
never delete those signers automatically after a failed workflow.
|
|
20
|
+
- Signer artifact downloads use the published public route. Supplying an optional
|
|
21
|
+
access code adds an identity preflight before downloading.
|
|
21
22
|
|
|
22
23
|
Legacy signer aliases (`phone`, `cpf`, and assignment `signer_ids`/`signerIds`),
|
|
23
24
|
both public `sendToken` request forms, and existing CLI functionality remain
|
package/docs/oauth-guide.md
CHANGED
|
@@ -40,7 +40,7 @@ The resource indicator is an origin, distinct from the SDK `baseUrl`, which incl
|
|
|
40
40
|
| `email` | Include permitted email claims. |
|
|
41
41
|
| `offline_access` | Request rotating refresh tokens for background work. |
|
|
42
42
|
|
|
43
|
-
`oauth connect` requests
|
|
43
|
+
`oauth connect` requests the seven scopes registered for the official CLI application by default: `account:read documents:read documents:write templates:read templates:write webhooks:write offline_access`. This supports documents, templates, the selected workspace, webhook settings, and rotating refresh tokens. The default does not request `openid`, `profile`, or `email`, so it does not issue an ID token or enable UserInfo. Those scopes remain available through `--scope` and the SDK for applications registered to use them. Existing connections need a new authorization with the larger scope set; refreshing an old token does not add permissions. Use `--scope` to explicitly select a different registered set when needed. For other applications, request only scopes they use. Resource metadata lists API scopes; authorization-server metadata also describes authentication features such as `offline_access`. The returned `scope` string is authoritative for the access token; do not infer granted scopes from what the browser requested. It never lists `offline_access`, even when granted: a `refresh_token` in the response is the only signal that refresh is available. A scope never bypasses a user's role or the token's workspace boundary. Billing, subscriptions, workspace membership, credential management, and administration remain unavailable to OAuth tokens; those CLI operations require the non-OAuth credential documented for each endpoint.
|
|
44
44
|
|
|
45
45
|
## Discover and start authorization
|
|
46
46
|
|
|
@@ -125,7 +125,7 @@ const tokens = await oauthClient.oauth.exchangeCode(
|
|
|
125
125
|
);
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
`exchangeCode(callbackUrl, request, clientSecret?)` checks the callback origin/path and registered query parameters, rejects duplicate protocol parameters, compares `state` in constant time, and requires the exact stored issuer. It rejects denied authorization before calling the token endpoint. Authorization codes expire after 60 seconds and can be used once. Exchange immediately and never retry a code blindly after a timeout.
|
|
128
|
+
`exchangeCode(callbackUrl, request, clientSecret?)` checks the callback origin/path and registered query parameters, rejects duplicate protocol parameters, requires exactly one of `code` or `error`, compares `state` in constant time, and requires the exact stored issuer. It rejects denied authorization before calling the token endpoint. Authorization codes expire after 60 seconds and can be used once. Exchange immediately and never retry a code blindly after a timeout.
|
|
129
129
|
|
|
130
130
|
An authorization error raises `ValidationError` with a bounded OAuth error code in `errors.oauthError` and the message, without retaining the callback URL. Unrecognized formats become `unknown_error`. For `invalid_scope`, check that the application registration permits every requested scope, including `offline_access`; do not treat the browser return as successful authorization.
|
|
131
131
|
|
|
@@ -261,7 +261,7 @@ await oauthClient.oauth.revoke({
|
|
|
261
261
|
|
|
262
262
|
### Automatic browser return
|
|
263
263
|
|
|
264
|
-
The distributed CLI includes the official **Public** application's client ID, `96BZZ0sZTb2NkEXt1GCaIRCTprI2YKHZr8JDHawuXUyCLC88`. This public identifier is not a secret. The CLI uses PKCE S256 and the scopes `account:read documents:read documents:write templates:read templates:write webhooks:write
|
|
264
|
+
The distributed CLI includes the official **Public** application's client ID, `96BZZ0sZTb2NkEXt1GCaIRCTprI2YKHZr8JDHawuXUyCLC88`. This public identifier is not a secret. The CLI uses PKCE S256 and the scopes `account:read documents:read documents:write templates:read templates:write webhooks:write offline_access`; keep the registered permissions consistent with the requested scopes. No client secret is used by `oauth connect`, including when `ASSINAFY_OAUTH_CLIENT_SECRET` is set for another application.
|
|
265
265
|
|
|
266
266
|
Application maintainers must deploy the callback from `integrations-generic-callback` and register this exact HTTPS URI, without an extension or trailing slash:
|
|
267
267
|
|
|
@@ -287,7 +287,7 @@ assinafy documents list --json
|
|
|
287
287
|
| --- | --- |
|
|
288
288
|
| `--client-id <id>` | Override the bundled public application ID; takes precedence over `ASSINAFY_OAUTH_CLIENT_ID`. |
|
|
289
289
|
| `--redirect-uri <uri>` | Registered HTTPS relay URI; defaults to the extensionless URL above. Query parameters and fragments are unsupported for this browser relay. |
|
|
290
|
-
| `--scope '<scopes>'` | Space-separated scopes; defaults to `account:read documents:read documents:write templates:read templates:write webhooks:write
|
|
290
|
+
| `--scope '<scopes>'` | Space-separated scopes; defaults to `account:read documents:read documents:write templates:read templates:write webhooks:write offline_access`. |
|
|
291
291
|
| `--timeout <seconds>` | Browser response deadline, 1–600 seconds; default 180. API calls use the SDK's network timeout. |
|
|
292
292
|
| `--no-browser` | Print the authorization URL for manual opening; the local listener still receives the return automatically. |
|
|
293
293
|
|
package/docs/oauth.md
CHANGED
|
@@ -41,10 +41,10 @@ Options:
|
|
|
41
41
|
ASSINAFY_OAUTH_CLIENT_ID)
|
|
42
42
|
--redirect-uri <uri> Exactly registered HTTPS relay URI (default:
|
|
43
43
|
"https://integrations.assinafy.com.br/assinafy-cli/oauth-callback")
|
|
44
|
-
--scope <scopes> Space-separated scopes; the default requests
|
|
45
|
-
|
|
46
|
-
documents:write templates:read
|
|
47
|
-
webhooks:write
|
|
44
|
+
--scope <scopes> Space-separated scopes; the default requests the seven
|
|
45
|
+
registered CLI scopes (default: "account:read
|
|
46
|
+
documents:read documents:write templates:read
|
|
47
|
+
templates:write webhooks:write offline_access")
|
|
48
48
|
--timeout <seconds> Wait for browser consent (1–600 seconds) (default:
|
|
49
49
|
"180")
|
|
50
50
|
--no-browser Print the authorization URL without opening the system
|
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
|
|
|
@@ -224,7 +224,7 @@ Create payload: `{ full_name: string; email?; whatsapp_phone_number?; phone?; cp
|
|
|
224
224
|
|
|
225
225
|
## Signer-side flows (`client.signerDocuments`)
|
|
226
226
|
|
|
227
|
-
These methods use the private `signer-access-code`, not the workspace API key, except for the artifact download that the API publishes as a public route. For email verification, obtain the access code from the verification link and the OTP from the same
|
|
227
|
+
These methods use the private `signer-access-code`, not the workspace API key, except for the artifact download that the API publishes as a public route. For email or WhatsApp verification, obtain the access code from the verification link and the OTP from the same message. An invitation containing only a document ID and recipient is not an access code. Call `self` and `getAssignment` to confirm the signer and document before submitting a decision; keep each document's verification credentials together.
|
|
228
228
|
|
|
229
229
|
| SDK method | HTTP operation | Resolves to |
|
|
230
230
|
| --- | --- | --- |
|
|
@@ -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.
|
|
@@ -444,7 +444,7 @@ Metadata, discovery, token, and revoke calls remove owner headers. UserInfo uses
|
|
|
444
444
|
| `validateMultiple(entries, options?)` | [`POST …/fields/validate-multiple`](./api-reference.md#validate-multiple-field-values) | `IFieldValidationResult[]` |
|
|
445
445
|
| `listTypes()` | [`GET /field-types`](./api-reference.md#list-field-types) | `IFieldType[]` |
|
|
446
446
|
|
|
447
|
-
Published create payload: `{ type: string; name: string; regex?; is_required? }`. Published update payload: `{ name?; regex?: string | null; is_active? }`. The SDK retains create-time `is_active` and update-time `type`/`is_required` as compatibility extensions. List params are `{ include_inactive?, include_standard? }`. Validation options are `{ signerAccessCode?, accountId? }`; multiple entries are `{ field_id, value }[]`. When a signer code is supplied, the SDK removes any configured owner API-key/bearer headers from that request.
|
|
447
|
+
Published create payload: `{ type: string; name: string; regex?; is_required? }`. Published update payload: `{ name?; regex?: string | null; is_active? }`. The SDK retains create-time `is_active` and update-time `type`/`is_required` as compatibility extensions. List params are `{ include_inactive?, include_standard? }`. Validation options are `{ signerAccessCode?, accountId? }`; multiple entries are `{ field_id, value }[]`. When a signer code is supplied, the SDK removes any configured owner API-key/bearer headers from that request. An explicitly empty or blank code raises `ValidationError` before any request; omit the option for owner-authenticated validation.
|
|
448
448
|
|
|
449
449
|
## Tags (`client.tags`)
|
|
450
450
|
|
|
@@ -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
|
|
|
@@ -541,7 +541,7 @@ try {
|
|
|
541
541
|
| API | Result |
|
|
542
542
|
| --- | --- |
|
|
543
543
|
| `new WebhookVerifier(secret?, { algorithm?, encoding? }?)` | Compatibility verifier; defaults to `sha256` and `hex`. |
|
|
544
|
-
| `verify(rawBody, signature)` | `boolean`; HMAC
|
|
544
|
+
| `verify(rawBody, signature)` | `boolean`; HMAC verification under the configured, assumed scheme. |
|
|
545
545
|
| `extractEvent(rawBody)` | Parsed `IWebhookPayload`, or `null` for invalid JSON/non-object data. |
|
|
546
546
|
| `getEventType(event)` | `event`/`type` string, or `null`. |
|
|
547
547
|
| `getEventData(event)` | First object found at `payload`, `data`, or `object`; otherwise `{}`. |
|
package/docs/signers.md
CHANGED
|
@@ -80,7 +80,7 @@ Options:
|
|
|
80
80
|
--name <name> Signer full name
|
|
81
81
|
--email <email> Email address
|
|
82
82
|
--phone <number> WhatsApp phone number (E.164)
|
|
83
|
-
--cpf <cpf> Brazilian tax ID (CPF)
|
|
83
|
+
--cpf <cpf> Brazilian tax ID (CPF/CNPJ), sent as government_id
|
|
84
84
|
-h, --help display help for command
|
|
85
85
|
```
|
|
86
86
|
|
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
|
package/install.ps1
CHANGED
|
@@ -41,6 +41,13 @@ function Add-UserPath([string]$Directory) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function Test-ArchiveLayout([string]$Archive, [string]$Target) {
|
|
44
|
+
$details = @(& tar -tvzf $Archive)
|
|
45
|
+
if ($LASTEXITCODE -ne 0) {
|
|
46
|
+
Fail "Unable to read release archive"
|
|
47
|
+
}
|
|
48
|
+
if (@($details | Where-Object { -not $_.StartsWith("-") }).Count -gt 0) {
|
|
49
|
+
Fail "Release archive contained a link or special file"
|
|
50
|
+
}
|
|
44
51
|
$entries = @(& tar -tzf $Archive)
|
|
45
52
|
if ($LASTEXITCODE -ne 0) {
|
|
46
53
|
Fail "Unable to read release archive"
|
|
@@ -163,6 +170,9 @@ try {
|
|
|
163
170
|
Test-ArchiveLayout $archive $target
|
|
164
171
|
|
|
165
172
|
tar -xzf $archive -C $extractDir
|
|
173
|
+
if ($LASTEXITCODE -ne 0) {
|
|
174
|
+
Fail "Unable to extract release archive"
|
|
175
|
+
}
|
|
166
176
|
$unsafeEntry = Get-ChildItem $extractDir -Recurse -Force | Where-Object {
|
|
167
177
|
($_.Attributes -band [IO.FileAttributes]::ReparsePoint) -ne 0
|
|
168
178
|
} | Select-Object -First 1
|
package/install.sh
CHANGED
|
@@ -243,6 +243,9 @@ validate_archive() {
|
|
|
243
243
|
local archive="$1"
|
|
244
244
|
local target="$2"
|
|
245
245
|
local entry expected executable_count=0 version_count=0
|
|
246
|
+
if ! tar -tvzf "$archive" | awk 'substr($0, 1, 1) != "-" { invalid = 1 } END { exit invalid }'; then
|
|
247
|
+
fail "Release archive contained a link or special file"
|
|
248
|
+
fi
|
|
246
249
|
if [[ "$target" == windows-* ]]; then
|
|
247
250
|
expected='assinafy.cmd|assinafy.cjs'
|
|
248
251
|
else
|