@oxy.so/contracts 4.16.0 → 4.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/accountEmail.js +12 -34
  3. package/dist/cjs/accountGraph.js +22 -320
  4. package/dist/cjs/agentKeys.js +11 -13
  5. package/dist/cjs/client/accountEmail.js +48 -0
  6. package/dist/cjs/client/accountGraph.js +323 -0
  7. package/dist/cjs/client/agentKeys.js +77 -0
  8. package/dist/cjs/client/check.js +466 -0
  9. package/dist/cjs/client/deviceBoot.js +22 -0
  10. package/dist/cjs/client/deviceDirectory.js +51 -0
  11. package/dist/cjs/client/deviceSession.js +63 -0
  12. package/dist/cjs/client/externalIdentity.js +19 -0
  13. package/dist/cjs/client/identity.js +45 -0
  14. package/dist/cjs/client/identityLink.js +55 -0
  15. package/dist/cjs/client/identityProof.js +109 -0
  16. package/dist/cjs/client/index.js +190 -0
  17. package/dist/cjs/client/organizations.js +114 -0
  18. package/dist/cjs/client/products.js +153 -0
  19. package/dist/cjs/client/recommendations.js +33 -0
  20. package/dist/cjs/client/reputation.js +41 -0
  21. package/dist/cjs/client/safety.js +15 -0
  22. package/dist/cjs/client/sessionStatus.js +23 -0
  23. package/dist/cjs/client/signIn.js +157 -0
  24. package/dist/cjs/client/userResponse.js +15 -0
  25. package/dist/cjs/client/username.js +173 -0
  26. package/dist/cjs/deviceSession.js +3 -16
  27. package/dist/cjs/identityLink.js +13 -34
  28. package/dist/cjs/identityProof.js +18 -106
  29. package/dist/cjs/organizations.js +21 -41
  30. package/dist/cjs/reputation.js +3 -34
  31. package/dist/cjs/signIn.js +33 -111
  32. package/dist/cjs/username.js +23 -158
  33. package/dist/esm/.tsbuildinfo +1 -1
  34. package/dist/esm/accountEmail.js +4 -32
  35. package/dist/esm/accountGraph.js +4 -309
  36. package/dist/esm/agentKeys.js +4 -10
  37. package/dist/esm/client/accountEmail.js +45 -0
  38. package/dist/esm/client/accountGraph.js +314 -0
  39. package/dist/esm/client/agentKeys.js +74 -0
  40. package/dist/esm/client/check.js +428 -0
  41. package/dist/esm/client/deviceBoot.js +19 -0
  42. package/dist/esm/client/deviceDirectory.js +48 -0
  43. package/dist/esm/client/deviceSession.js +60 -0
  44. package/dist/esm/client/externalIdentity.js +16 -0
  45. package/dist/esm/client/identity.js +42 -0
  46. package/dist/esm/client/identityLink.js +50 -0
  47. package/dist/esm/client/identityProof.js +104 -0
  48. package/dist/esm/client/index.js +37 -0
  49. package/dist/esm/client/organizations.js +111 -0
  50. package/dist/esm/client/products.js +150 -0
  51. package/dist/esm/client/recommendations.js +30 -0
  52. package/dist/esm/client/reputation.js +37 -0
  53. package/dist/esm/client/safety.js +12 -0
  54. package/dist/esm/client/sessionStatus.js +20 -0
  55. package/dist/esm/client/signIn.js +151 -0
  56. package/dist/esm/client/userResponse.js +12 -0
  57. package/dist/esm/client/username.js +167 -0
  58. package/dist/esm/deviceSession.js +1 -15
  59. package/dist/esm/identityLink.js +4 -27
  60. package/dist/esm/identityProof.js +4 -99
  61. package/dist/esm/organizations.js +4 -31
  62. package/dist/esm/reputation.js +1 -32
  63. package/dist/esm/signIn.js +4 -96
  64. package/dist/esm/username.js +4 -148
  65. package/dist/types/.tsbuildinfo +1 -1
  66. package/dist/types/accountEmail.d.ts +2 -34
  67. package/dist/types/accountGraph.d.ts +12 -208
  68. package/dist/types/agency.d.ts +24 -24
  69. package/dist/types/agentKeys.d.ts +8 -6
  70. package/dist/types/client/accountEmail.d.ts +44 -0
  71. package/dist/types/client/accountGraph.d.ts +203 -0
  72. package/dist/types/client/agentKeys.d.ts +113 -0
  73. package/dist/types/client/check.d.ts +184 -0
  74. package/dist/types/client/deviceBoot.d.ts +6 -0
  75. package/dist/types/client/deviceDirectory.d.ts +134 -0
  76. package/dist/types/client/deviceSession.d.ts +91 -0
  77. package/dist/types/client/externalIdentity.d.ts +14 -0
  78. package/dist/types/client/identity.d.ts +8 -0
  79. package/dist/types/client/identityLink.d.ts +21 -0
  80. package/dist/types/client/identityProof.d.ts +73 -0
  81. package/dist/types/client/index.d.ts +37 -0
  82. package/dist/types/client/organizations.d.ts +167 -0
  83. package/dist/types/client/products.d.ts +145 -0
  84. package/dist/types/client/recommendations.d.ts +27 -0
  85. package/dist/types/client/reputation.d.ts +28 -0
  86. package/dist/types/client/safety.d.ts +13 -0
  87. package/dist/types/client/sessionStatus.d.ts +19 -0
  88. package/dist/types/client/signIn.d.ts +107 -0
  89. package/dist/types/client/userResponse.d.ts +7 -0
  90. package/dist/types/client/username.d.ts +126 -0
  91. package/dist/types/deviceDirectory.d.ts +28 -28
  92. package/dist/types/deviceSession.d.ts +1 -12
  93. package/dist/types/externalIdentity.d.ts +11 -11
  94. package/dist/types/identityLink.d.ts +3 -11
  95. package/dist/types/identityProof.d.ts +2 -65
  96. package/dist/types/inference/decisions.d.ts +10 -10
  97. package/dist/types/inference/embeddings.d.ts +16 -16
  98. package/dist/types/inference/errors.d.ts +8 -8
  99. package/dist/types/inference/inbox.d.ts +8 -8
  100. package/dist/types/inference/privateAutoExecution.d.ts +6 -6
  101. package/dist/types/inference/realtime.d.ts +30 -30
  102. package/dist/types/inference/request.d.ts +28 -28
  103. package/dist/types/inference/streamEvents.d.ts +16 -16
  104. package/dist/types/inference/usage.d.ts +4 -4
  105. package/dist/types/oauth.d.ts +2 -2
  106. package/dist/types/organizations.d.ts +8 -10
  107. package/dist/types/products/billing.d.ts +3 -0
  108. package/dist/types/reputation.d.ts +1 -11
  109. package/dist/types/sessionStatus.d.ts +2 -2
  110. package/dist/types/signIn.d.ts +6 -89
  111. package/dist/types/userResponse.d.ts +20 -20
  112. package/dist/types/username.d.ts +1 -96
  113. package/package.json +20 -1
@@ -427,14 +427,14 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
427
427
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
428
428
  }, "strict", z.ZodTypeAny, {
429
429
  provider: string;
430
- status?: number | undefined;
431
430
  code?: string | undefined;
432
431
  message?: string | undefined;
432
+ status?: number | undefined;
433
433
  }, {
434
434
  provider: string;
435
- status?: number | undefined;
436
435
  code?: string | undefined;
437
436
  message?: string | undefined;
437
+ status?: number | undefined;
438
438
  }>>;
439
439
  }, "strip", z.ZodTypeAny, {
440
440
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -447,9 +447,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
447
447
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
448
448
  providerError?: {
449
449
  provider: string;
450
- status?: number | undefined;
451
450
  code?: string | undefined;
452
451
  message?: string | undefined;
452
+ status?: number | undefined;
453
453
  } | undefined;
454
454
  }, {
455
455
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -462,9 +462,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
462
462
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
463
463
  providerError?: {
464
464
  provider: string;
465
- status?: number | undefined;
466
465
  code?: string | undefined;
467
466
  message?: string | undefined;
467
+ status?: number | undefined;
468
468
  } | undefined;
469
469
  }>, {
470
470
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -477,9 +477,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
477
477
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
478
478
  providerError?: {
479
479
  provider: string;
480
- status?: number | undefined;
481
480
  code?: string | undefined;
482
481
  message?: string | undefined;
482
+ status?: number | undefined;
483
483
  } | undefined;
484
484
  }, {
485
485
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -492,9 +492,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
492
492
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
493
493
  providerError?: {
494
494
  provider: string;
495
- status?: number | undefined;
496
495
  code?: string | undefined;
497
496
  message?: string | undefined;
497
+ status?: number | undefined;
498
498
  } | undefined;
499
499
  }>;
500
500
  }, "strip", z.ZodTypeAny, {
@@ -510,9 +510,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
510
510
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
511
511
  providerError?: {
512
512
  provider: string;
513
- status?: number | undefined;
514
513
  code?: string | undefined;
515
514
  message?: string | undefined;
515
+ status?: number | undefined;
516
516
  } | undefined;
517
517
  };
518
518
  schemaVersion: 1;
@@ -531,9 +531,9 @@ export declare const inferenceStreamErrorEventSchema: z.ZodObject<{
531
531
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
532
532
  providerError?: {
533
533
  provider: string;
534
- status?: number | undefined;
535
534
  code?: string | undefined;
536
535
  message?: string | undefined;
536
+ status?: number | undefined;
537
537
  } | undefined;
538
538
  };
539
539
  schemaVersion: 1;
@@ -863,14 +863,14 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
863
863
  message: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
864
864
  }, "strict", z.ZodTypeAny, {
865
865
  provider: string;
866
- status?: number | undefined;
867
866
  code?: string | undefined;
868
867
  message?: string | undefined;
868
+ status?: number | undefined;
869
869
  }, {
870
870
  provider: string;
871
- status?: number | undefined;
872
871
  code?: string | undefined;
873
872
  message?: string | undefined;
873
+ status?: number | undefined;
874
874
  }>>;
875
875
  }, "strip", z.ZodTypeAny, {
876
876
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -883,9 +883,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
883
883
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
884
884
  providerError?: {
885
885
  provider: string;
886
- status?: number | undefined;
887
886
  code?: string | undefined;
888
887
  message?: string | undefined;
888
+ status?: number | undefined;
889
889
  } | undefined;
890
890
  }, {
891
891
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -898,9 +898,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
898
898
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
899
899
  providerError?: {
900
900
  provider: string;
901
- status?: number | undefined;
902
901
  code?: string | undefined;
903
902
  message?: string | undefined;
903
+ status?: number | undefined;
904
904
  } | undefined;
905
905
  }>, {
906
906
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -913,9 +913,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
913
913
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
914
914
  providerError?: {
915
915
  provider: string;
916
- status?: number | undefined;
917
916
  code?: string | undefined;
918
917
  message?: string | undefined;
918
+ status?: number | undefined;
919
919
  } | undefined;
920
920
  }, {
921
921
  code: "rate_limited" | "internal_error" | "service_unavailable" | "cancelled" | "invalid_request" | "authentication_failed" | "permission_denied" | "insufficient_scope" | "model_not_found" | "unsupported_modality" | "context_length_exceeded" | "request_too_large" | "output_limit_exceeded" | "idempotency_conflict" | "insufficient_balance" | "spending_limit_exceeded" | "quota_exceeded" | "byok_credential_invalid" | "policy_violation" | "commercial_permission_denied" | "no_route_available" | "upstream_content_filtered" | "deployment_unavailable" | "provider_error" | "provider_timeout" | "provider_overloaded" | "provider_credential_invalid" | "provider_billing_refused";
@@ -928,9 +928,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
928
928
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
929
929
  providerError?: {
930
930
  provider: string;
931
- status?: number | undefined;
932
931
  code?: string | undefined;
933
932
  message?: string | undefined;
933
+ status?: number | undefined;
934
934
  } | undefined;
935
935
  }>;
936
936
  }, "strip", z.ZodTypeAny, {
@@ -946,9 +946,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
946
946
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
947
947
  providerError?: {
948
948
  provider: string;
949
- status?: number | undefined;
950
949
  code?: string | undefined;
951
950
  message?: string | undefined;
951
+ status?: number | undefined;
952
952
  } | undefined;
953
953
  };
954
954
  schemaVersion: 1;
@@ -967,9 +967,9 @@ export declare const inferenceStreamEventSchema: z.ZodDiscriminatedUnion<"type",
967
967
  upstreamCategory?: "unknown" | "authentication" | "invalid_request" | "rate_limit" | "quota" | "timeout" | "overloaded" | "server_error" | "content_filter" | undefined;
968
968
  providerError?: {
969
969
  provider: string;
970
- status?: number | undefined;
971
970
  code?: string | undefined;
972
971
  message?: string | undefined;
972
+ status?: number | undefined;
973
973
  } | undefined;
974
974
  };
975
975
  schemaVersion: 1;
@@ -257,8 +257,8 @@ export declare const usageReservationSchema: z.ZodEffects<z.ZodObject<{
257
257
  /** The receipt that consumed this hold. Present exactly when `settled`. */
258
258
  settledReceiptId: z.ZodOptional<z.ZodString>;
259
259
  }, "strip", z.ZodTypeAny, {
260
- status: "expired" | "held" | "settled" | "released";
261
260
  expiresAt: string;
261
+ status: "expired" | "held" | "settled" | "released";
262
262
  createdAt: string;
263
263
  schemaVersion: 1;
264
264
  currency: string;
@@ -282,8 +282,8 @@ export declare const usageReservationSchema: z.ZodEffects<z.ZodObject<{
282
282
  ceilingPriceVersionId: string;
283
283
  settledReceiptId?: string | undefined;
284
284
  }, {
285
- status: "expired" | "held" | "settled" | "released";
286
285
  expiresAt: string;
286
+ status: "expired" | "held" | "settled" | "released";
287
287
  createdAt: string;
288
288
  schemaVersion: 1;
289
289
  currency: string;
@@ -307,8 +307,8 @@ export declare const usageReservationSchema: z.ZodEffects<z.ZodObject<{
307
307
  ceilingPriceVersionId: string;
308
308
  settledReceiptId?: string | undefined;
309
309
  }>, {
310
- status: "expired" | "held" | "settled" | "released";
311
310
  expiresAt: string;
311
+ status: "expired" | "held" | "settled" | "released";
312
312
  createdAt: string;
313
313
  schemaVersion: 1;
314
314
  currency: string;
@@ -332,8 +332,8 @@ export declare const usageReservationSchema: z.ZodEffects<z.ZodObject<{
332
332
  ceilingPriceVersionId: string;
333
333
  settledReceiptId?: string | undefined;
334
334
  }, {
335
- status: "expired" | "held" | "settled" | "released";
336
335
  expiresAt: string;
336
+ status: "expired" | "held" | "settled" | "released";
337
337
  createdAt: string;
338
338
  schemaVersion: 1;
339
339
  currency: string;
@@ -74,13 +74,13 @@ export declare const oauthAuthorizeCodeResponseSchema: z.ZodObject<{
74
74
  }, "strip", z.ZodTypeAny, {
75
75
  code: string;
76
76
  state: string | null;
77
- redirectUri: string;
78
77
  expiresIn: number;
78
+ redirectUri: string;
79
79
  }, {
80
80
  code: string;
81
81
  state: string | null;
82
- redirectUri: string;
83
82
  expiresIn: number;
83
+ redirectUri: string;
84
84
  }>;
85
85
  /**
86
86
  * Display-safe identity of a dynamically registered external MCP client.
@@ -1,10 +1,5 @@
1
1
  import { z } from 'zod';
2
- /** Real-world identity classification, independent of account topics and permissions. */
3
- export declare const ORGANIZATION_TYPES: readonly ["business", "nonprofit", "public_body", "community", "other"];
4
- export declare const ORGANIZATION_STATUSES: readonly ["active", "inactive", "merged", "suppressed"];
5
- export declare const ORGANIZATION_CLAIM_STATUSES: readonly ["unclaimed", "claimed"];
6
- export declare const ORGANIZATION_ALIAS_KINDS: readonly ["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"];
7
- export declare const ORGANIZATION_CLAIM_DECISIONS: readonly ["pending", "approved", "rejected"];
2
+ export { ORGANIZATION_TYPES, ORGANIZATION_STATUSES, ORGANIZATION_CLAIM_STATUSES, ORGANIZATION_ALIAS_KINDS, ORGANIZATION_CLAIM_DECISIONS, ORGANIZATION_NAME_MAX_LENGTH, ORGANIZATION_ERROR_CODES, } from './client/organizations';
8
3
  export declare const organizationAliasSchema: z.ZodObject<{
9
4
  alias: z.ZodString;
10
5
  kind: z.ZodEnum<["name_variant", "former_name", "localized_name", "marketing_name", "misspelling"]>;
@@ -18,7 +13,6 @@ export declare const organizationAliasSchema: z.ZodObject<{
18
13
  kind: "name_variant" | "former_name" | "localized_name" | "marketing_name" | "misspelling";
19
14
  language?: string | undefined;
20
15
  }>;
21
- export declare const ORGANIZATION_NAME_MAX_LENGTH = 300;
22
16
  export declare const organizationNameSchema: z.ZodEffects<z.ZodString, string, string>;
23
17
  export declare const createOrganizationSchema: z.ZodObject<{
24
18
  name: z.ZodEffects<z.ZodString, string, string>;
@@ -686,8 +680,8 @@ export declare const organizationExternalInputSchema: z.ZodObject<{
686
680
  }[] | undefined;
687
681
  };
688
682
  evidenceReference: string;
689
- namespace: string;
690
683
  externalId: string;
684
+ namespace: string;
691
685
  accountId?: string | undefined;
692
686
  avatarFileId?: string | undefined;
693
687
  }, {
@@ -704,8 +698,8 @@ export declare const organizationExternalInputSchema: z.ZodObject<{
704
698
  }[] | undefined;
705
699
  };
706
700
  evidenceReference: string;
707
- namespace: string;
708
701
  externalId: string;
702
+ namespace: string;
709
703
  accountId?: string | undefined;
710
704
  avatarFileId?: string | undefined;
711
705
  }>;
@@ -925,7 +919,6 @@ export declare const organizationMergeSchema: z.ZodObject<{
925
919
  evidenceReference: string;
926
920
  targetAccountId: string;
927
921
  }>;
928
- export declare const ORGANIZATION_ERROR_CODES: readonly ["bad_request", "unauthorized", "forbidden", "not_found", "unknown_route", "conflict", "validation_failed", "rate_limited", "internal_error", "service_unavailable"];
929
922
  export declare const organizationErrorSchema: z.ZodObject<{
930
923
  error: z.ZodObject<{
931
924
  code: z.ZodEnum<["bad_request", "unauthorized", "forbidden", "not_found", "unknown_route", "conflict", "validation_failed", "rate_limited", "internal_error", "service_unavailable"]>;
@@ -1086,3 +1079,8 @@ export declare const organizationCurationResultSchema: z.ZodObject<{
1086
1079
  accountId: string;
1087
1080
  }>;
1088
1081
  export type OrganizationCuration = z.infer<typeof organizationCurationSchema>;
1082
+ export type OrganizationClaimList = z.infer<typeof organizationClaimListSchema>;
1083
+ export type OrganizationImportBatchResult = z.infer<typeof organizationImportBatchResultSchema>;
1084
+ export type OrganizationExternal = z.infer<typeof organizationExternalSchema>;
1085
+ export type OrganizationExternalResolution = z.infer<typeof organizationExternalResolutionSchema>;
1086
+ export type OrganizationCurationResult = z.infer<typeof organizationCurationResultSchema>;
@@ -564,3 +564,6 @@ export declare const productSubscriptionCancellationResultSchema: z.ZodUnion<[z.
564
564
  reconciliationPending: true;
565
565
  }>]>;
566
566
  export type ProductSubscriptionCancellationResult = z.infer<typeof productSubscriptionCancellationResultSchema>;
567
+ export type ProductSubscriptionsResponse = z.infer<typeof productSubscriptionsResponseSchema>;
568
+ export type SubscriptionCreditGrantsResponse = z.infer<typeof subscriptionCreditGrantsResponseSchema>;
569
+ export type CancelProductSubscription = z.infer<typeof cancelProductSubscriptionSchema>;
@@ -41,6 +41,7 @@
41
41
  import { z } from 'zod';
42
42
  import { type UserNameResponse } from './userResponse';
43
43
  import { type ReputationConduct, type ReputationContextualInfluence, type ReputationContribution, type ReputationPersonhood, type ReputationReporting, type ReputationReviewing } from './moderationReputation';
44
+ export { isFullReputationBalance } from './client/reputation';
44
45
  /**
45
46
  * Category bucket a reputation transaction falls into. Drives the per-category
46
47
  * balance breakdown; every rule and transaction carries exactly one.
@@ -255,17 +256,6 @@ export declare const reputationBalanceSchema: z.ZodType<ReputationBalance>;
255
256
  * requires narrowing with {@link isFullReputationBalance}.
256
257
  */
257
258
  export type ReputationBalanceView = ReputationBalance | ReputationBalanceSummary;
258
- /**
259
- * Whether a balance came back as the SUBJECT view, and so carries the
260
- * breakdown / influence / reliability blocks.
261
- *
262
- * Checks every extra field rather than one representative: the point of the
263
- * guard is that the caller then dereferences those blocks, so a partial payload
264
- * must not narrow.
265
- *
266
- * @param balance - A balance from `getReputationBalance`.
267
- */
268
- export declare function isFullReputationBalance(balance: ReputationBalanceView): balance is ReputationBalance;
269
259
  /**
270
260
  * A reputation award/penalty rule, keyed by `actionType`. Rules are defined in
271
261
  * Oxy's code and versioned; no endpoint edits them.
@@ -179,8 +179,8 @@ export declare const sessionStatusSchema: z.ZodObject<{
179
179
  openedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
180
  }, "strip", z.ZodTypeAny, {
181
181
  status: string;
182
- purpose?: "device_sign_in" | "oauth_authorization" | undefined;
183
182
  expiresAt?: string | undefined;
183
+ purpose?: "device_sign_in" | "oauth_authorization" | undefined;
184
184
  sessionId?: string | null | undefined;
185
185
  userId?: string | null | undefined;
186
186
  publicKey?: string | null | undefined;
@@ -204,8 +204,8 @@ export declare const sessionStatusSchema: z.ZodObject<{
204
204
  openedAt?: string | null | undefined;
205
205
  }, {
206
206
  status: string;
207
- purpose?: "device_sign_in" | "oauth_authorization" | undefined;
208
207
  expiresAt?: string | undefined;
208
+ purpose?: "device_sign_in" | "oauth_authorization" | undefined;
209
209
  sessionId?: string | null | undefined;
210
210
  userId?: string | null | undefined;
211
211
  publicKey?: string | null | undefined;
@@ -31,37 +31,8 @@
31
31
  */
32
32
  import { z } from 'zod';
33
33
  import type { LoginResult } from './deviceBoot';
34
- /** How long the link in a sign-in email can be opened. */
35
- export declare const EMAIL_SIGNIN_LINK_TTL_MS: number;
36
- /** How long a second-factor challenge can be answered. */
37
- export declare const SIGNIN_SECOND_FACTOR_TTL_MS: number;
38
- /** Wrong second-factor codes one challenge accepts. */
39
- export declare const SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS = 5;
40
- /** Shortest password Oxy accepts when one is set. */
41
- export declare const PASSWORD_MIN_LENGTH = 10;
42
- /** Longest password Oxy accepts (characters). */
43
- export declare const PASSWORD_MAX_LENGTH = 256;
44
- /** Digits in an authenticator code. */
45
- export declare const TOTP_DIGITS = 6;
46
- /** Seconds each authenticator code lasts. */
47
- export declare const TOTP_PERIOD_SECONDS = 30;
48
- /** Backup codes issued when an authenticator is enabled or they are regenerated. */
49
- export declare const TOTP_BACKUP_CODE_COUNT = 10;
50
- /**
51
- * The long sign-in code: ten characters of Crockford base32 without the
52
- * look-alikes (no 0, O, 1, I, L, U), shown as `XXXXX-XXXXX`. An account whose
53
- * sign-in codes were guessed at too often today (the per-account ceiling) is
54
- * sent this instead of 6 digits for the rest of the day, so its owner can still
55
- * type a code while guessing one is infeasible.
56
- */
57
- export declare const EMAIL_SIGNIN_LONG_CODE_ALPHABET = "23456789ABCDEFGHJKMNPQRSTVWXYZ";
58
- export declare const EMAIL_SIGNIN_LONG_CODE_LENGTH = 10;
59
- /**
60
- * Normalise a typed sign-in code: 6 digits stay as they are; a long code is
61
- * upper-cased with its dash and spaces removed. Anything else is returned
62
- * trimmed (and will simply be wrong).
63
- */
64
- export declare function normalizeEmailSignInCode(code: string): string;
34
+ export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, normalizeEmailSignInCode, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_ACCOUNTS_MAX, isSecondFactorRequired, isEmailSignInChooseAccount, REAUTH_ACTIONS, SIGN_IN_ERROR_CODES, } from './client/signIn';
35
+ export type { ReauthAction, SignInErrorCode } from './client/signIn';
65
36
  /** A username or an email. */
66
37
  export declare const signInIdentifierSchema: z.ZodString;
67
38
  /** A password as typed. Its policy applies only when one is set. */
@@ -252,8 +223,8 @@ export declare const passwordSignInRequestSchema: z.ZodObject<{
252
223
  identifier: z.ZodString;
253
224
  password: z.ZodString;
254
225
  }, "strict", z.ZodTypeAny, {
255
- identifier: string;
256
226
  password: string;
227
+ identifier: string;
257
228
  device?: {
258
229
  deviceId: string;
259
230
  deviceSecret: string;
@@ -261,8 +232,8 @@ export declare const passwordSignInRequestSchema: z.ZodObject<{
261
232
  deviceName?: string | undefined;
262
233
  deviceFingerprint?: string | undefined;
263
234
  }, {
264
- identifier: string;
265
235
  password: string;
236
+ identifier: string;
266
237
  device?: {
267
238
  deviceId: string;
268
239
  deviceSecret: string;
@@ -364,13 +335,6 @@ export interface EmailSignInPending {
364
335
  export declare const emailSignInPendingSchema: z.ZodType<EmailSignInPending>;
365
336
  /** What a first factor answers: a session, or the second-factor step. */
366
337
  export type SignInStepResult = LoginResult | SecondFactorRequired;
367
- /**
368
- * How long, once the email is proven, the person has to choose which of its
369
- * accounts signs in.
370
- */
371
- export declare const EMAIL_SIGNIN_CHOICE_TTL_MS: number;
372
- /** Most accounts one email can hold; sign-up refuses another past it. */
373
- export declare const EMAIL_ACCOUNTS_MAX = 20;
374
338
  /** One account an email holds, as the choice after proving it shows it. */
375
339
  export interface EmailSignInAccountOption {
376
340
  id: string;
@@ -436,16 +400,6 @@ export declare const emailSignInChooseRequestSchema: z.ZodObject<{
436
400
  deviceFingerprint?: string | undefined;
437
401
  }>;
438
402
  export type EmailSignInChooseRequest = z.infer<typeof emailSignInChooseRequestSchema>;
439
- /** Narrow a {@link SignInStepResult}. */
440
- export declare function isSecondFactorRequired(result: EmailSignInStepResult | EmailSignInPending): result is SecondFactorRequired;
441
- /** Narrow an {@link EmailSignInStepResult}. */
442
- export declare function isEmailSignInChooseAccount(result: EmailSignInStepResult | EmailSignInPending): result is EmailSignInChooseAccount;
443
- /**
444
- * What a re-verification email code confirms. The code is bound to it: a code
445
- * asked for one change never authorises another, and the email names it.
446
- */
447
- export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account", "credentials_manage"];
448
- export type ReauthAction = (typeof REAUTH_ACTIONS)[number];
449
403
  /** `POST /users/me/reauth/email` */
450
404
  export declare const reauthEmailStartRequestSchema: z.ZodObject<{
451
405
  action: z.ZodEnum<["change_password", "totp", "link_commons", "delete_account", "credentials_manage"]>;
@@ -668,6 +622,7 @@ export declare const totpConfirmRequestSchema: z.ZodObject<{
668
622
  totpCode?: string | undefined;
669
623
  }>;
670
624
  }, "strict", z.ZodTypeAny, {
625
+ code: string;
671
626
  reauth: {
672
627
  password?: string | undefined;
673
628
  emailCode?: {
@@ -676,8 +631,8 @@ export declare const totpConfirmRequestSchema: z.ZodObject<{
676
631
  } | undefined;
677
632
  totpCode?: string | undefined;
678
633
  };
679
- code: string;
680
634
  }, {
635
+ code: string;
681
636
  reauth: {
682
637
  password?: string | undefined;
683
638
  emailCode?: {
@@ -686,7 +641,6 @@ export declare const totpConfirmRequestSchema: z.ZodObject<{
686
641
  } | undefined;
687
642
  totpCode?: string | undefined;
688
643
  };
689
- code: string;
690
644
  }>;
691
645
  export type TotpConfirmRequest = z.infer<typeof totpConfirmRequestSchema>;
692
646
  /** `POST /users/me/totp/disable` and `POST /users/me/totp/backup-codes` */
@@ -759,40 +713,3 @@ export interface TotpBackupCodesResponse {
759
713
  backupCodes: string[];
760
714
  }
761
715
  export declare const totpBackupCodesResponseSchema: z.ZodType<TotpBackupCodesResponse>;
762
- /**
763
- * Stable error codes (`error.code` in the API error body). Clients map these
764
- * through their localization, never the English message.
765
- */
766
- export declare const SIGN_IN_ERROR_CODES: {
767
- /** Wrong identifier or password — never says which. */
768
- readonly invalidCredentials: "SIGNIN_INVALID_CREDENTIALS";
769
- /** The request is unknown, expired, spent, or its secret is wrong. */
770
- readonly requestInvalid: "SIGNIN_REQUEST_INVALID";
771
- /** The link is unknown, expired or already used. */
772
- readonly linkInvalid: "SIGNIN_LINK_INVALID";
773
- /** The link was opened in another browser: type the code in the app instead. */
774
- readonly linkOtherDevice: "SIGNIN_LINK_OTHER_DEVICE";
775
- /** The second-factor challenge or its code is wrong, expired or spent. */
776
- readonly secondFactorInvalid: "SECOND_FACTOR_INVALID";
777
- /** Too many failures for this account: wait and try again. */
778
- readonly locked: "SIGNIN_LOCKED";
779
- /** The step needs a fresh proof (`reauth`). */
780
- readonly reauthRequired: "REAUTH_REQUIRED";
781
- /** The fresh proof was wrong. */
782
- readonly reauthInvalid: "REAUTH_INVALID";
783
- /** The account has an authenticator: the proof must carry its code. */
784
- readonly totpRequired: "TOTP_REQUIRED";
785
- /** Enrolling or confirming an authenticator that is already on. */
786
- readonly totpAlreadyEnabled: "TOTP_ALREADY_ENABLED";
787
- /** Disabling, confirming or regenerating codes with no authenticator (or no pending one). */
788
- readonly totpNotEnabled: "TOTP_NOT_ENABLED";
789
- /** The code the authenticator showed at enrolment is wrong. */
790
- readonly totpCodeInvalid: "TOTP_CODE_INVALID";
791
- /** Only official Oxy apps and auth.oxy.so may sign people in here. */
792
- readonly originNotAllowed: "SIGNIN_ORIGIN_NOT_ALLOWED";
793
- /** The username is taken. */
794
- readonly usernameTaken: "USERNAME_TAKEN";
795
- /** The email already holds `EMAIL_ACCOUNTS_MAX` accounts: no sign-up adds another. */
796
- readonly emailAccountsFull: "EMAIL_ACCOUNTS_FULL";
797
- };
798
- export type SignInErrorCode = (typeof SIGN_IN_ERROR_CODES)[keyof typeof SIGN_IN_ERROR_CODES];