@clossir-tech/ts-sdk 0.9.5 → 0.9.6

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.
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Attest member wallets on behalf of org
13
13
  *
14
14
  * @remarks
15
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
15
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
16
16
  */
17
17
  export declare function organizationsPostOrgsByOrgIdMembersByUserIdAttest(client: ClossirCore, security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity, orgId: string, userId: string, body: operations.PostOrgsByOrgIdMembersByUserIdAttestRequestBody, options?: RequestOptions): APIPromise<Result<operations.PostOrgsByOrgIdMembersByUserIdAttestResponse, errors.ProblemDetailsError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=organizations-post-orgs-by-org-id-members-by-user-id-attest.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Attest member wallets on behalf of org
17
17
  *
18
18
  * @remarks
19
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
19
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
20
20
  */
21
21
  export function organizationsPostOrgsByOrgIdMembersByUserIdAttest(client, security, orgId, userId, body, options) {
22
22
  return new APIPromise($do(client, security, orgId, userId, body, options));
@@ -100,9 +100,7 @@ async function $do(client, security, orgId, userId, body, options) {
100
100
  const responseFields = {
101
101
  HttpMeta: { Response: response, Request: req },
102
102
  };
103
- const [result] = await M.match(M.json(202, operations.PostOrgsByOrgIdMembersByUserIdAttestResponse$inboundSchema), M.jsonErr([401, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
104
- ctype: "application/problem+json",
105
- }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
103
+ const [result] = await M.match(M.json(202, operations.PostOrgsByOrgIdMembersByUserIdAttestResponse$inboundSchema), M.jsonErr([400, 401, 403, 404, 409, 428], errors.ProblemDetailsError$inboundSchema, { ctype: "application/problem+json" }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
106
104
  if (!result.ok) {
107
105
  return [result, { status: "complete", request: req, response }];
108
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"organizations-post-orgs-by-org-id-members-by-user-id-attest.js","sourceRoot":"","sources":["../../src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,iDAAiD,CAC/D,MAAmB,EACnB,QAAiE,EACjE,KAAa,EACb,MAAc,EACd,IAAgE,EAChE,OAAwB,EAcxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,QAAQ,EACR,KAAK,EACL,MAAM,EACN,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAmB,EACnB,QAAiE,EACjE,KAAa,EACb,MAAc,EACd,IAAgE,EAChE,OAAwB,EAiBxB;IACA,MAAM,KAAK,GAA2D;QACpE,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI;KACX,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CACL,UAAU,CAAC,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AC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,CACtE,EACD,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACxE,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
1
+ {"version":3,"file":"organizations-post-orgs-by-org-id-members-by-user-id-attest.js","sourceRoot":"","sources":["../../src/funcs/organizations-post-orgs-by-org-id-members-by-user-id-attest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,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AAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,0DAA0D,CACtE,EACD,CAAC,CAAC,OAAO,CACP,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC9B,MAAM,CAAC,iCAAiC,EACxC,EAAE,KAAK,EAAE,0BAA0B,EAAE,CACtC,EACD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0.0";
34
- readonly sdkVersion: "0.9.5";
34
+ readonly sdkVersion: "0.9.6";
35
35
  readonly genVersion: "2.916.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.9.5 2.916.4 2.0.0 @clossir-tech/ts-sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.9.6 2.916.4 2.0.0 @clossir-tech/ts-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "2.0.0",
34
- sdkVersion: "0.9.5",
34
+ sdkVersion: "0.9.6",
35
35
  genVersion: "2.916.4",
36
- userAgent: "speakeasy-sdk/typescript 0.9.5 2.916.4 2.0.0 @clossir-tech/ts-sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.9.6 2.916.4 2.0.0 @clossir-tech/ts-sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -24,7 +24,7 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody = {
24
24
  */
25
25
  countryCode?: string | undefined;
26
26
  /**
27
- * Attestation expiry (ISO 8601)
27
+ * Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Also sent to the chain.
28
28
  */
29
29
  expiresAt?: string | undefined;
30
30
  /**
@@ -201,7 +201,7 @@ export declare class Organizations extends ClientSDK {
201
201
  * Attest member wallets on behalf of org
202
202
  *
203
203
  * @remarks
204
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
204
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
205
205
  */
206
206
  postOrgsByOrgIdMembersByUserIdAttest(security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity, orgId: string, userId: string, body: operations.PostOrgsByOrgIdMembersByUserIdAttestRequestBody, options?: RequestOptions): Promise<operations.PostOrgsByOrgIdMembersByUserIdAttestResponse>;
207
207
  /**
@@ -313,7 +313,7 @@ export class Organizations extends ClientSDK {
313
313
  * Attest member wallets on behalf of org
314
314
  *
315
315
  * @remarks
316
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
316
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
317
317
  */
318
318
  async postOrgsByOrgIdMembersByUserIdAttest(security, orgId, userId, body, options) {
319
319
  return unwrapAsync(organizationsPostOrgsByOrgIdMembersByUserIdAttest(this, security, orgId, userId, body, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@clossir-tech/ts-sdk",
5
- "version": "0.9.5",
5
+ "version": "0.9.6",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clossir-tech/ts-sdk",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "author": "Clossir Team",
5
5
  "description": "TypeScript SDK for the Clossir platform API",
6
6
  "homepage": "https://docs.clossir.com",
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Attest member wallets on behalf of org
32
32
  *
33
33
  * @remarks
34
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
34
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
35
35
  */
36
36
  export function organizationsPostOrgsByOrgIdMembersByUserIdAttest(
37
37
  client: ClossirCore,
@@ -205,9 +205,11 @@ async function $do(
205
205
  202,
206
206
  operations.PostOrgsByOrgIdMembersByUserIdAttestResponse$inboundSchema,
207
207
  ),
208
- M.jsonErr([401, 403, 404, 428], errors.ProblemDetailsError$inboundSchema, {
209
- ctype: "application/problem+json",
210
- }),
208
+ M.jsonErr(
209
+ [400, 401, 403, 404, 409, 428],
210
+ errors.ProblemDetailsError$inboundSchema,
211
+ { ctype: "application/problem+json" },
212
+ ),
211
213
  M.fail("4XX"),
212
214
  M.fail("5XX"),
213
215
  )(response, req, { extraFields: responseFields });
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "2.0.0",
68
- sdkVersion: "0.9.5",
68
+ sdkVersion: "0.9.6",
69
69
  genVersion: "2.916.4",
70
70
  userAgent:
71
- "speakeasy-sdk/typescript 0.9.5 2.916.4 2.0.0 @clossir-tech/ts-sdk",
71
+ "speakeasy-sdk/typescript 0.9.6 2.916.4 2.0.0 @clossir-tech/ts-sdk",
72
72
  } as const;
@@ -32,7 +32,7 @@ export type PostOrgsByOrgIdMembersByUserIdAttestRequestBody = {
32
32
  */
33
33
  countryCode?: string | undefined;
34
34
  /**
35
- * Attestation expiry (ISO 8601)
35
+ * Attestation expiry, an ISO 8601 date-time strictly in the future (400 otherwise). Also sent to the chain.
36
36
  */
37
37
  expiresAt?: string | undefined;
38
38
  /**
@@ -646,7 +646,7 @@ export class Organizations extends ClientSDK {
646
646
  * Attest member wallets on behalf of org
647
647
  *
648
648
  * @remarks
649
- * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
649
+ * Triggers an attestation for one or more of a member's wallets. The organization acts as the attesting authority (e.g., a bank completing KYC for a client). If walletAddresses is omitted, all user wallets are attested. If chainEid is omitted, attestations are created on all chains where wallets exist. Returns 202 Accepted — attestations are processed asynchronously via Kafka workers. Returns 409 attestation_in_force, and writes nothing, if any selected wallet already holds an attestation on that chain that is pending, submitting or active; a new attestation can be issued once it has failed, expired or been revoked. Returns 409 attestation_reinstate_unsupported for a revoked attestation on Solana. expiresAt, when given, must be a future ISO 8601 date-time (400 otherwise). Requires staff role (admin, operator, compliance_officer) or API key with write:attestations permission.
650
650
  */
651
651
  async postOrgsByOrgIdMembersByUserIdAttest(
652
652
  security: operations.PostOrgsByOrgIdMembersByUserIdAttestSecurity,