@factify/sdk 0.3.11 → 0.3.13-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts +18 -0
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.d.ts.map +1 -0
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js +124 -0
- package/dist/commonjs/funcs/quotaGetOrganizationQuota.js.map +1 -0
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts +18 -0
- package/dist/commonjs/funcs/quotaGetUsageHistory.d.ts.map +1 -0
- package/dist/commonjs/funcs/quotaGetUsageHistory.js +126 -0
- package/dist/commonjs/funcs/quotaGetUsageHistory.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.d.ts +2 -2
- package/dist/commonjs/models/components/createorganizationrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.js +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.js.map +1 -1
- package/dist/commonjs/models/components/dailyusage.d.ts +20 -0
- package/dist/commonjs/models/components/dailyusage.d.ts.map +1 -0
- package/dist/commonjs/models/components/dailyusage.js +58 -0
- package/dist/commonjs/models/components/dailyusage.js.map +1 -0
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts +17 -0
- package/dist/commonjs/models/components/getorganizationquotaresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/getorganizationquotaresponse.js +52 -0
- package/dist/commonjs/models/components/getorganizationquotaresponse.js.map +1 -0
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts +25 -0
- package/dist/commonjs/models/components/getusagehistoryresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/getusagehistoryresponse.js +61 -0
- package/dist/commonjs/models/components/getusagehistoryresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/organizationquota.d.ts +52 -0
- package/dist/commonjs/models/components/organizationquota.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationquota.js +71 -0
- package/dist/commonjs/models/components/organizationquota.js.map +1 -0
- package/dist/commonjs/models/components/quotatier.d.ts +17 -0
- package/dist/commonjs/models/components/quotatier.d.ts.map +1 -0
- package/dist/commonjs/models/components/quotatier.js +51 -0
- package/dist/commonjs/models/components/quotatier.js.map +1 -0
- package/dist/commonjs/models/operations/getorganizationquota.d.ts +34 -0
- package/dist/commonjs/models/operations/getorganizationquota.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorganizationquota.js +73 -0
- package/dist/commonjs/models/operations/getorganizationquota.js.map +1 -0
- package/dist/commonjs/models/operations/getusagehistory.d.ts +41 -0
- package/dist/commonjs/models/operations/getusagehistory.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getusagehistory.js +77 -0
- package/dist/commonjs/models/operations/getusagehistory.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/quota.d.ts +19 -0
- package/dist/commonjs/sdk/quota.d.ts.map +1 -0
- package/dist/commonjs/sdk/quota.js +32 -0
- package/dist/commonjs/sdk/quota.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts +18 -0
- package/dist/esm/funcs/quotaGetOrganizationQuota.d.ts.map +1 -0
- package/dist/esm/funcs/quotaGetOrganizationQuota.js +88 -0
- package/dist/esm/funcs/quotaGetOrganizationQuota.js.map +1 -0
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts +18 -0
- package/dist/esm/funcs/quotaGetUsageHistory.d.ts.map +1 -0
- package/dist/esm/funcs/quotaGetUsageHistory.js +90 -0
- package/dist/esm/funcs/quotaGetUsageHistory.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/createorganizationrequest.d.ts +2 -2
- package/dist/esm/models/components/createorganizationrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createorganizationrequest.js +1 -1
- package/dist/esm/models/components/createorganizationrequest.js.map +1 -1
- package/dist/esm/models/components/dailyusage.d.ts +20 -0
- package/dist/esm/models/components/dailyusage.d.ts.map +1 -0
- package/dist/esm/models/components/dailyusage.js +21 -0
- package/dist/esm/models/components/dailyusage.js.map +1 -0
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts +17 -0
- package/dist/esm/models/components/getorganizationquotaresponse.d.ts.map +1 -0
- package/dist/esm/models/components/getorganizationquotaresponse.js +15 -0
- package/dist/esm/models/components/getorganizationquotaresponse.js.map +1 -0
- package/dist/esm/models/components/getusagehistoryresponse.d.ts +25 -0
- package/dist/esm/models/components/getusagehistoryresponse.d.ts.map +1 -0
- package/dist/esm/models/components/getusagehistoryresponse.js +24 -0
- package/dist/esm/models/components/getusagehistoryresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/organizationquota.d.ts +52 -0
- package/dist/esm/models/components/organizationquota.d.ts.map +1 -0
- package/dist/esm/models/components/organizationquota.js +34 -0
- package/dist/esm/models/components/organizationquota.js.map +1 -0
- package/dist/esm/models/components/quotatier.d.ts +17 -0
- package/dist/esm/models/components/quotatier.d.ts.map +1 -0
- package/dist/esm/models/components/quotatier.js +15 -0
- package/dist/esm/models/components/quotatier.js.map +1 -0
- package/dist/esm/models/operations/getorganizationquota.d.ts +34 -0
- package/dist/esm/models/operations/getorganizationquota.d.ts.map +1 -0
- package/dist/esm/models/operations/getorganizationquota.js +35 -0
- package/dist/esm/models/operations/getorganizationquota.js.map +1 -0
- package/dist/esm/models/operations/getusagehistory.d.ts +41 -0
- package/dist/esm/models/operations/getusagehistory.d.ts.map +1 -0
- package/dist/esm/models/operations/getusagehistory.js +39 -0
- package/dist/esm/models/operations/getusagehistory.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/quota.d.ts +19 -0
- package/dist/esm/sdk/quota.d.ts.map +1 -0
- package/dist/esm/sdk/quota.js +28 -0
- package/dist/esm/sdk/quota.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/openapi.json +483 -18
- package/package.json +1 -1
- package/src/funcs/quotaGetOrganizationQuota.ts +182 -0
- package/src/funcs/quotaGetUsageHistory.ts +184 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/createorganizationrequest.ts +3 -3
- package/src/models/components/dailyusage.ts +48 -0
- package/src/models/components/getorganizationquotaresponse.ts +41 -0
- package/src/models/components/getusagehistoryresponse.ts +58 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/organizationquota.ts +95 -0
- package/src/models/components/quotatier.ts +24 -0
- package/src/models/operations/getorganizationquota.ts +93 -0
- package/src/models/operations/getusagehistory.ts +100 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/quota.ts +45 -0
- package/src/sdk/sdk.ts +6 -0
package/openapi.json
CHANGED
|
@@ -403,6 +403,7 @@
|
|
|
403
403
|
},
|
|
404
404
|
"owner_user_id": {
|
|
405
405
|
"description": "Owner user ID. If not provided, the authenticated user becomes the owner.\n Authorization: Specifying a different user requires system maintainer role.\n Required when the caller is a service account (service accounts cannot own organizations).\n Pattern: user_[0-9a-hjkmnp-tv-z]{26}",
|
|
406
|
+
"nullable": true,
|
|
406
407
|
"pattern": "^user_[0-9a-hjkmnp-tv-z]{26}$",
|
|
407
408
|
"title": "owner_user_id",
|
|
408
409
|
"type": "string"
|
|
@@ -478,6 +479,27 @@
|
|
|
478
479
|
"title": "CreateVersionRequest",
|
|
479
480
|
"type": "object"
|
|
480
481
|
},
|
|
482
|
+
"DailyUsage": {
|
|
483
|
+
"additionalProperties": false,
|
|
484
|
+
"description": "DailyUsage represents usage for a single day.",
|
|
485
|
+
"properties": {
|
|
486
|
+
"date": {
|
|
487
|
+
"description": "The date (YYYY-MM-DD format).",
|
|
488
|
+
"example": "2026-01-15",
|
|
489
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
490
|
+
"title": "date",
|
|
491
|
+
"type": "string"
|
|
492
|
+
},
|
|
493
|
+
"request_count": {
|
|
494
|
+
"description": "Request count for this day.",
|
|
495
|
+
"format": "int32",
|
|
496
|
+
"title": "request_count",
|
|
497
|
+
"type": "integer"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"title": "DailyUsage",
|
|
501
|
+
"type": "object"
|
|
502
|
+
},
|
|
481
503
|
"DetachPolicyRequest": {
|
|
482
504
|
"additionalProperties": false,
|
|
483
505
|
"description": "DetachPolicyRequest identifies a policy to detach from a document.",
|
|
@@ -729,6 +751,35 @@
|
|
|
729
751
|
"title": "GetDocumentResponse",
|
|
730
752
|
"type": "object"
|
|
731
753
|
},
|
|
754
|
+
"GetOrganizationQuotaRequest": {
|
|
755
|
+
"additionalProperties": false,
|
|
756
|
+
"description": "GetOrganizationQuotaRequest is a request to get quota status.",
|
|
757
|
+
"properties": {
|
|
758
|
+
"organization_id": {
|
|
759
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
760
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
761
|
+
"nullable": true,
|
|
762
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
763
|
+
"title": "organization_id",
|
|
764
|
+
"type": "string"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"title": "GetOrganizationQuotaRequest",
|
|
768
|
+
"type": "object"
|
|
769
|
+
},
|
|
770
|
+
"GetOrganizationQuotaResponse": {
|
|
771
|
+
"additionalProperties": false,
|
|
772
|
+
"description": "GetOrganizationQuotaResponse returns the quota status.",
|
|
773
|
+
"properties": {
|
|
774
|
+
"quota": {
|
|
775
|
+
"$ref": "#/components/schemas/OrganizationQuota",
|
|
776
|
+
"description": "The organization's quota status.",
|
|
777
|
+
"title": "quota"
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"title": "GetOrganizationQuotaResponse",
|
|
781
|
+
"type": "object"
|
|
782
|
+
},
|
|
732
783
|
"GetOrganizationRequest": {
|
|
733
784
|
"additionalProperties": false,
|
|
734
785
|
"description": "GetOrganizationRequest identifies an organization to retrieve.",
|
|
@@ -762,6 +813,69 @@
|
|
|
762
813
|
"title": "GetOrganizationResponse",
|
|
763
814
|
"type": "object"
|
|
764
815
|
},
|
|
816
|
+
"GetUsageHistoryRequest": {
|
|
817
|
+
"additionalProperties": false,
|
|
818
|
+
"description": "GetUsageHistoryRequest is a request to get usage history.\ndate_range_valid // end_date must be after start_date\n",
|
|
819
|
+
"properties": {
|
|
820
|
+
"end_date": {
|
|
821
|
+
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
822
|
+
"example": "2026-02-01",
|
|
823
|
+
"maxLength": 10,
|
|
824
|
+
"minLength": 10,
|
|
825
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
826
|
+
"title": "end_date",
|
|
827
|
+
"type": "string"
|
|
828
|
+
},
|
|
829
|
+
"organization_id": {
|
|
830
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
831
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
832
|
+
"nullable": true,
|
|
833
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
834
|
+
"title": "organization_id",
|
|
835
|
+
"type": "string"
|
|
836
|
+
},
|
|
837
|
+
"start_date": {
|
|
838
|
+
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
839
|
+
"example": "2026-01-01",
|
|
840
|
+
"maxLength": 10,
|
|
841
|
+
"minLength": 10,
|
|
842
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
843
|
+
"title": "start_date",
|
|
844
|
+
"type": "string"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"title": "GetUsageHistoryRequest",
|
|
848
|
+
"type": "object"
|
|
849
|
+
},
|
|
850
|
+
"GetUsageHistoryResponse": {
|
|
851
|
+
"additionalProperties": false,
|
|
852
|
+
"description": "GetUsageHistoryResponse returns usage history.",
|
|
853
|
+
"properties": {
|
|
854
|
+
"daily_usage": {
|
|
855
|
+
"description": "Daily usage records.",
|
|
856
|
+
"items": {
|
|
857
|
+
"$ref": "#/components/schemas/DailyUsage"
|
|
858
|
+
},
|
|
859
|
+
"title": "daily_usage",
|
|
860
|
+
"type": "array"
|
|
861
|
+
},
|
|
862
|
+
"organization_id": {
|
|
863
|
+
"description": "The organization ID.",
|
|
864
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
865
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
866
|
+
"title": "organization_id",
|
|
867
|
+
"type": "string"
|
|
868
|
+
},
|
|
869
|
+
"total_requests": {
|
|
870
|
+
"description": "Total requests in the period.",
|
|
871
|
+
"format": "int32",
|
|
872
|
+
"title": "total_requests",
|
|
873
|
+
"type": "integer"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"title": "GetUsageHistoryResponse",
|
|
877
|
+
"type": "object"
|
|
878
|
+
},
|
|
765
879
|
"GetVersionRequest": {
|
|
766
880
|
"additionalProperties": false,
|
|
767
881
|
"description": "GetVersionRequest identifies a specific version to retrieve.",
|
|
@@ -1094,6 +1208,67 @@
|
|
|
1094
1208
|
"title": "Organization",
|
|
1095
1209
|
"type": "object"
|
|
1096
1210
|
},
|
|
1211
|
+
"OrganizationQuota": {
|
|
1212
|
+
"additionalProperties": false,
|
|
1213
|
+
"description": "OrganizationQuota represents the quota status for an organization.",
|
|
1214
|
+
"properties": {
|
|
1215
|
+
"current_usage": {
|
|
1216
|
+
"description": "Current usage in the billing period.",
|
|
1217
|
+
"format": "int32",
|
|
1218
|
+
"title": "current_usage",
|
|
1219
|
+
"type": "integer"
|
|
1220
|
+
},
|
|
1221
|
+
"effective_limit": {
|
|
1222
|
+
"description": "The effective monthly limit (considers custom_limit if set).",
|
|
1223
|
+
"format": "int32",
|
|
1224
|
+
"title": "effective_limit",
|
|
1225
|
+
"type": "integer"
|
|
1226
|
+
},
|
|
1227
|
+
"is_exceeded": {
|
|
1228
|
+
"description": "Whether quota is exceeded.",
|
|
1229
|
+
"title": "is_exceeded",
|
|
1230
|
+
"type": "boolean"
|
|
1231
|
+
},
|
|
1232
|
+
"organization_id": {
|
|
1233
|
+
"description": "The organization ID.\n Pattern: org_[0-9a-hjkmnp-tv-z]{26}",
|
|
1234
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
1235
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
1236
|
+
"title": "organization_id",
|
|
1237
|
+
"type": "string"
|
|
1238
|
+
},
|
|
1239
|
+
"period_start": {
|
|
1240
|
+
"description": "Start of current billing period.",
|
|
1241
|
+
"format": "date-time",
|
|
1242
|
+
"title": "period_start",
|
|
1243
|
+
"type": "string"
|
|
1244
|
+
},
|
|
1245
|
+
"remaining": {
|
|
1246
|
+
"description": "Remaining requests in the billing period.",
|
|
1247
|
+
"format": "int32",
|
|
1248
|
+
"title": "remaining",
|
|
1249
|
+
"type": "integer"
|
|
1250
|
+
},
|
|
1251
|
+
"reset_at": {
|
|
1252
|
+
"description": "When the quota resets (start of next billing period).",
|
|
1253
|
+
"format": "date-time",
|
|
1254
|
+
"title": "reset_at",
|
|
1255
|
+
"type": "string"
|
|
1256
|
+
},
|
|
1257
|
+
"tier": {
|
|
1258
|
+
"$ref": "#/components/schemas/QuotaTier",
|
|
1259
|
+
"description": "The quota tier (free or custom).",
|
|
1260
|
+
"title": "tier"
|
|
1261
|
+
},
|
|
1262
|
+
"usage_percent": {
|
|
1263
|
+
"description": "Usage as a percentage (0-100+).",
|
|
1264
|
+
"format": "int32",
|
|
1265
|
+
"title": "usage_percent",
|
|
1266
|
+
"type": "integer"
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
"title": "OrganizationQuota",
|
|
1270
|
+
"type": "object"
|
|
1271
|
+
},
|
|
1097
1272
|
"Pagination": {
|
|
1098
1273
|
"additionalProperties": false,
|
|
1099
1274
|
"description": "Pagination contains cursor-based pagination metadata.\n Follows Google AIP-158 for pagination field naming.",
|
|
@@ -1159,6 +1334,16 @@
|
|
|
1159
1334
|
"failed"
|
|
1160
1335
|
]
|
|
1161
1336
|
},
|
|
1337
|
+
"QuotaTier": {
|
|
1338
|
+
"description": "QuotaTier represents the organization's quota tier.",
|
|
1339
|
+
"enum": [
|
|
1340
|
+
"QUOTA_TIER_UNSPECIFIED",
|
|
1341
|
+
"QUOTA_TIER_FREE",
|
|
1342
|
+
"QUOTA_TIER_CUSTOM"
|
|
1343
|
+
],
|
|
1344
|
+
"title": "QuotaTier",
|
|
1345
|
+
"type": "string"
|
|
1346
|
+
},
|
|
1162
1347
|
"RevokeApiKeyRequest": {
|
|
1163
1348
|
"additionalProperties": false,
|
|
1164
1349
|
"description": "RevokeApiKeyRequest identifies an API key to revoke.",
|
|
@@ -1541,7 +1726,14 @@
|
|
|
1541
1726
|
},
|
|
1542
1727
|
"type": "cursor"
|
|
1543
1728
|
},
|
|
1544
|
-
"x-speakeasy-name-override": "list"
|
|
1729
|
+
"x-speakeasy-name-override": "list",
|
|
1730
|
+
"x-codeSamples": [
|
|
1731
|
+
{
|
|
1732
|
+
"lang": "typescript",
|
|
1733
|
+
"label": "listApiKeys",
|
|
1734
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.list({\n organizationId: \"\u003cid\u003e\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
1735
|
+
}
|
|
1736
|
+
]
|
|
1545
1737
|
},
|
|
1546
1738
|
"post": {
|
|
1547
1739
|
"description": "Creates a new API key for the specified organization. The secret is only returned once in the response and cannot be retrieved later.",
|
|
@@ -1590,7 +1782,14 @@
|
|
|
1590
1782
|
"tags": [
|
|
1591
1783
|
"API Keys"
|
|
1592
1784
|
],
|
|
1593
|
-
"x-speakeasy-name-override": "create"
|
|
1785
|
+
"x-speakeasy-name-override": "create",
|
|
1786
|
+
"x-codeSamples": [
|
|
1787
|
+
{
|
|
1788
|
+
"lang": "typescript",
|
|
1789
|
+
"label": "createApiKey",
|
|
1790
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.create({\n name: \"\u003cvalue\u003e\",\n organizationId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1791
|
+
}
|
|
1792
|
+
]
|
|
1594
1793
|
}
|
|
1595
1794
|
},
|
|
1596
1795
|
"/v1beta/api-keys/{api_key_id}/revoke": {
|
|
@@ -1669,7 +1868,14 @@
|
|
|
1669
1868
|
"tags": [
|
|
1670
1869
|
"API Keys"
|
|
1671
1870
|
],
|
|
1672
|
-
"x-speakeasy-name-override": "revoke"
|
|
1871
|
+
"x-speakeasy-name-override": "revoke",
|
|
1872
|
+
"x-codeSamples": [
|
|
1873
|
+
{
|
|
1874
|
+
"lang": "typescript",
|
|
1875
|
+
"label": "revokeApiKey",
|
|
1876
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.apiKeys.revoke({\n apiKeyId: \"\u003cid\u003e\",\n body: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1877
|
+
}
|
|
1878
|
+
]
|
|
1673
1879
|
}
|
|
1674
1880
|
},
|
|
1675
1881
|
"/v1beta/documents": {
|
|
@@ -1813,7 +2019,14 @@
|
|
|
1813
2019
|
},
|
|
1814
2020
|
"type": "cursor"
|
|
1815
2021
|
},
|
|
1816
|
-
"x-speakeasy-name-override": "list"
|
|
2022
|
+
"x-speakeasy-name-override": "list",
|
|
2023
|
+
"x-codeSamples": [
|
|
2024
|
+
{
|
|
2025
|
+
"lang": "typescript",
|
|
2026
|
+
"label": "listDocuments",
|
|
2027
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.documents.list({\n pageToken: \"eyJpZCI6ImRvY18wMWgyeGNlanF0ZjJuYnJleHgzdnFqaHA0MSIsImQiOiJuZXh0In0\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
2028
|
+
}
|
|
2029
|
+
]
|
|
1817
2030
|
},
|
|
1818
2031
|
"post": {
|
|
1819
2032
|
"description": "Creates a new document by uploading a PDF file.",
|
|
@@ -1862,7 +2075,14 @@
|
|
|
1862
2075
|
"tags": [
|
|
1863
2076
|
"Documents"
|
|
1864
2077
|
],
|
|
1865
|
-
"x-speakeasy-name-override": "create"
|
|
2078
|
+
"x-speakeasy-name-override": "create",
|
|
2079
|
+
"x-codeSamples": [
|
|
2080
|
+
{
|
|
2081
|
+
"lang": "typescript",
|
|
2082
|
+
"label": "createDocument",
|
|
2083
|
+
"source": "import { Factify } from \"@factify/sdk\";\nimport { openAsBlob } from \"node:fs\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.documents.create({\n payload: await openAsBlob(\"example.file\"),\n title: \"\u003cvalue\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2084
|
+
}
|
|
2085
|
+
]
|
|
1866
2086
|
}
|
|
1867
2087
|
},
|
|
1868
2088
|
"/v1beta/documents/{document_id}": {
|
|
@@ -1917,7 +2137,14 @@
|
|
|
1917
2137
|
"tags": [
|
|
1918
2138
|
"Documents"
|
|
1919
2139
|
],
|
|
1920
|
-
"x-speakeasy-name-override": "get"
|
|
2140
|
+
"x-speakeasy-name-override": "get",
|
|
2141
|
+
"x-codeSamples": [
|
|
2142
|
+
{
|
|
2143
|
+
"lang": "typescript",
|
|
2144
|
+
"label": "getDocument",
|
|
2145
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.documents.get({\n documentId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
1921
2148
|
},
|
|
1922
2149
|
"patch": {
|
|
1923
2150
|
"description": "Update document title and description.",
|
|
@@ -2000,7 +2227,14 @@
|
|
|
2000
2227
|
"tags": [
|
|
2001
2228
|
"Documents"
|
|
2002
2229
|
],
|
|
2003
|
-
"x-speakeasy-name-override": "update"
|
|
2230
|
+
"x-speakeasy-name-override": "update",
|
|
2231
|
+
"x-codeSamples": [
|
|
2232
|
+
{
|
|
2233
|
+
"lang": "typescript",
|
|
2234
|
+
"label": "updateDocument",
|
|
2235
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.documents.update({\n documentId: \"\u003cid\u003e\",\n body: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2236
|
+
}
|
|
2237
|
+
]
|
|
2004
2238
|
}
|
|
2005
2239
|
},
|
|
2006
2240
|
"/v1beta/documents/{document_id}/entry_page": {
|
|
@@ -2056,7 +2290,14 @@
|
|
|
2056
2290
|
"Sharing \u0026 Distribution"
|
|
2057
2291
|
],
|
|
2058
2292
|
"x-speakeasy-group": "entryPages",
|
|
2059
|
-
"x-speakeasy-name-override": "generate"
|
|
2293
|
+
"x-speakeasy-name-override": "generate",
|
|
2294
|
+
"x-codeSamples": [
|
|
2295
|
+
{
|
|
2296
|
+
"lang": "typescript",
|
|
2297
|
+
"label": "generateDocumentEntryPage",
|
|
2298
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.entryPages.generate({\n documentId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2299
|
+
}
|
|
2300
|
+
]
|
|
2060
2301
|
}
|
|
2061
2302
|
},
|
|
2062
2303
|
"/v1beta/documents/{document_id}/policies": {
|
|
@@ -2148,7 +2389,14 @@
|
|
|
2148
2389
|
},
|
|
2149
2390
|
"type": "cursor"
|
|
2150
2391
|
},
|
|
2151
|
-
"x-speakeasy-name-override": "list"
|
|
2392
|
+
"x-speakeasy-name-override": "list",
|
|
2393
|
+
"x-codeSamples": [
|
|
2394
|
+
{
|
|
2395
|
+
"lang": "typescript",
|
|
2396
|
+
"label": "listDocumentPolicies",
|
|
2397
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.policies.list({\n documentId: \"\u003cid\u003e\",\n pageToken: \"eyJpZCI6InBvbF8wMWgyeGNlanF0ZjJuYnJleHgzdnFqaHA0MSIsImQiOiJuZXh0IiwiZiI6eyJkb2NfaWQiOiJkb2NfMDFoMnhjZWpxdGYybmJyZXh4M3ZxamhwNDEifX0\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
2398
|
+
}
|
|
2399
|
+
]
|
|
2152
2400
|
},
|
|
2153
2401
|
"post": {
|
|
2154
2402
|
"description": "Attach a policy to a document.",
|
|
@@ -2225,7 +2473,14 @@
|
|
|
2225
2473
|
"tags": [
|
|
2226
2474
|
"Policies"
|
|
2227
2475
|
],
|
|
2228
|
-
"x-speakeasy-name-override": "attach"
|
|
2476
|
+
"x-speakeasy-name-override": "attach",
|
|
2477
|
+
"x-codeSamples": [
|
|
2478
|
+
{
|
|
2479
|
+
"lang": "typescript",
|
|
2480
|
+
"label": "attachDocumentPolicy",
|
|
2481
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.policies.attach({\n documentId: \"\u003cid\u003e\",\n body: {\n policyId: \"\u003cid\u003e\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2482
|
+
}
|
|
2483
|
+
]
|
|
2229
2484
|
}
|
|
2230
2485
|
},
|
|
2231
2486
|
"/v1beta/documents/{document_id}/policies/{policy_id}": {
|
|
@@ -2292,7 +2547,14 @@
|
|
|
2292
2547
|
"tags": [
|
|
2293
2548
|
"Policies"
|
|
2294
2549
|
],
|
|
2295
|
-
"x-speakeasy-name-override": "detach"
|
|
2550
|
+
"x-speakeasy-name-override": "detach",
|
|
2551
|
+
"x-codeSamples": [
|
|
2552
|
+
{
|
|
2553
|
+
"lang": "typescript",
|
|
2554
|
+
"label": "detachDocumentPolicy",
|
|
2555
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.policies.detach({\n documentId: \"\u003cid\u003e\",\n policyId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2556
|
+
}
|
|
2557
|
+
]
|
|
2296
2558
|
}
|
|
2297
2559
|
},
|
|
2298
2560
|
"/v1beta/documents/{document_id}/versions": {
|
|
@@ -2384,7 +2646,14 @@
|
|
|
2384
2646
|
},
|
|
2385
2647
|
"type": "cursor"
|
|
2386
2648
|
},
|
|
2387
|
-
"x-speakeasy-name-override": "list"
|
|
2649
|
+
"x-speakeasy-name-override": "list",
|
|
2650
|
+
"x-codeSamples": [
|
|
2651
|
+
{
|
|
2652
|
+
"lang": "typescript",
|
|
2653
|
+
"label": "listDocumentVersions",
|
|
2654
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.list({\n documentId: \"\u003cid\u003e\",\n pageToken: \"eyJpZCI6InZlcl8wMWgyYWJjZDEyMzRlZmdoNTY3OGprbW5wdCIsImQiOiJuZXh0IiwiZiI6eyJkb2NfaWQiOiJkb2NfMDFoMnhjZWpxdGYybmJyZXh4M3ZxamhwNDEifX0\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
2655
|
+
}
|
|
2656
|
+
]
|
|
2388
2657
|
},
|
|
2389
2658
|
"post": {
|
|
2390
2659
|
"description": "Creates a new version by uploading a PDF file.",
|
|
@@ -2447,7 +2716,14 @@
|
|
|
2447
2716
|
"tags": [
|
|
2448
2717
|
"Versions"
|
|
2449
2718
|
],
|
|
2450
|
-
"x-speakeasy-name-override": "create"
|
|
2719
|
+
"x-speakeasy-name-override": "create",
|
|
2720
|
+
"x-codeSamples": [
|
|
2721
|
+
{
|
|
2722
|
+
"lang": "typescript",
|
|
2723
|
+
"label": "createDocumentVersion",
|
|
2724
|
+
"source": "import { Factify } from \"@factify/sdk\";\nimport { openAsBlob } from \"node:fs\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.create({\n documentId: \"\u003cid\u003e\",\n body: {\n payload: await openAsBlob(\"example.file\"),\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2725
|
+
}
|
|
2726
|
+
]
|
|
2451
2727
|
}
|
|
2452
2728
|
},
|
|
2453
2729
|
"/v1beta/organizations": {
|
|
@@ -2526,7 +2802,14 @@
|
|
|
2526
2802
|
},
|
|
2527
2803
|
"type": "cursor"
|
|
2528
2804
|
},
|
|
2529
|
-
"x-speakeasy-name-override": "list"
|
|
2805
|
+
"x-speakeasy-name-override": "list",
|
|
2806
|
+
"x-codeSamples": [
|
|
2807
|
+
{
|
|
2808
|
+
"lang": "typescript",
|
|
2809
|
+
"label": "listOrganizations",
|
|
2810
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.list();\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
2811
|
+
}
|
|
2812
|
+
]
|
|
2530
2813
|
},
|
|
2531
2814
|
"post": {
|
|
2532
2815
|
"description": "Creates a new organization. The authenticated user becomes the organization owner.",
|
|
@@ -2575,7 +2858,14 @@
|
|
|
2575
2858
|
"tags": [
|
|
2576
2859
|
"Organizations"
|
|
2577
2860
|
],
|
|
2578
|
-
"x-speakeasy-name-override": "create"
|
|
2861
|
+
"x-speakeasy-name-override": "create",
|
|
2862
|
+
"x-codeSamples": [
|
|
2863
|
+
{
|
|
2864
|
+
"lang": "typescript",
|
|
2865
|
+
"label": "createOrganization",
|
|
2866
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.create({\n name: \"\u003cvalue\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2867
|
+
}
|
|
2868
|
+
]
|
|
2579
2869
|
}
|
|
2580
2870
|
},
|
|
2581
2871
|
"/v1beta/organizations/{organization_id}": {
|
|
@@ -2630,7 +2920,164 @@
|
|
|
2630
2920
|
"tags": [
|
|
2631
2921
|
"Organizations"
|
|
2632
2922
|
],
|
|
2633
|
-
"x-speakeasy-name-override": "get"
|
|
2923
|
+
"x-speakeasy-name-override": "get",
|
|
2924
|
+
"x-codeSamples": [
|
|
2925
|
+
{
|
|
2926
|
+
"lang": "typescript",
|
|
2927
|
+
"label": "getOrganization",
|
|
2928
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.organizations.get({\n organizationId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2929
|
+
}
|
|
2930
|
+
]
|
|
2931
|
+
}
|
|
2932
|
+
},
|
|
2933
|
+
"/v1beta/quota": {
|
|
2934
|
+
"get": {
|
|
2935
|
+
"description": "Returns the current quota status for an organization including usage, limits, tier, and reset date.",
|
|
2936
|
+
"operationId": "getOrganizationQuota",
|
|
2937
|
+
"parameters": [
|
|
2938
|
+
{
|
|
2939
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
2940
|
+
"in": "query",
|
|
2941
|
+
"name": "organization_id",
|
|
2942
|
+
"schema": {
|
|
2943
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.\n Only admins can query other organizations.",
|
|
2944
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
2945
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
2946
|
+
"title": "organization_id",
|
|
2947
|
+
"type": "string"
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
],
|
|
2951
|
+
"responses": {
|
|
2952
|
+
"200": {
|
|
2953
|
+
"content": {
|
|
2954
|
+
"application/json": {
|
|
2955
|
+
"schema": {
|
|
2956
|
+
"$ref": "#/components/schemas/GetOrganizationQuotaResponse"
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
},
|
|
2960
|
+
"description": "Success"
|
|
2961
|
+
},
|
|
2962
|
+
"400": {
|
|
2963
|
+
"$ref": "#/components/responses/BadRequest"
|
|
2964
|
+
},
|
|
2965
|
+
"401": {
|
|
2966
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2967
|
+
},
|
|
2968
|
+
"403": {
|
|
2969
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2970
|
+
},
|
|
2971
|
+
"404": {
|
|
2972
|
+
"$ref": "#/components/responses/NotFound"
|
|
2973
|
+
},
|
|
2974
|
+
"429": {
|
|
2975
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
2976
|
+
},
|
|
2977
|
+
"500": {
|
|
2978
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
"summary": "Get organization quota status",
|
|
2982
|
+
"tags": [
|
|
2983
|
+
"Quota"
|
|
2984
|
+
],
|
|
2985
|
+
"x-codeSamples": [
|
|
2986
|
+
{
|
|
2987
|
+
"lang": "typescript",
|
|
2988
|
+
"label": "getOrganizationQuota",
|
|
2989
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.quota.getOrganizationQuota({\n organizationId: \"org_01h2xcejqtf2nbrexx3vqjhp41\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
2990
|
+
}
|
|
2991
|
+
]
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
"/v1beta/quota/usage": {
|
|
2995
|
+
"get": {
|
|
2996
|
+
"description": "Returns daily usage records for an organization within a specified date range.",
|
|
2997
|
+
"operationId": "getUsageHistory",
|
|
2998
|
+
"parameters": [
|
|
2999
|
+
{
|
|
3000
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
3001
|
+
"in": "query",
|
|
3002
|
+
"name": "organization_id",
|
|
3003
|
+
"schema": {
|
|
3004
|
+
"description": "Optional: organization ID to query. If not provided, uses the caller's organization.",
|
|
3005
|
+
"example": "org_01h2xcejqtf2nbrexx3vqjhp41",
|
|
3006
|
+
"pattern": "^org_[0-9a-hjkmnp-tv-z]{26}$",
|
|
3007
|
+
"title": "organization_id",
|
|
3008
|
+
"type": "string"
|
|
3009
|
+
}
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
3013
|
+
"in": "query",
|
|
3014
|
+
"name": "start_date",
|
|
3015
|
+
"schema": {
|
|
3016
|
+
"description": "Start date for the history (inclusive, YYYY-MM-DD format).",
|
|
3017
|
+
"example": "2026-01-01",
|
|
3018
|
+
"maxLength": 10,
|
|
3019
|
+
"minLength": 10,
|
|
3020
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
3021
|
+
"title": "start_date",
|
|
3022
|
+
"type": "string"
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
3027
|
+
"in": "query",
|
|
3028
|
+
"name": "end_date",
|
|
3029
|
+
"schema": {
|
|
3030
|
+
"description": "End date for the history (exclusive, YYYY-MM-DD format).",
|
|
3031
|
+
"example": "2026-02-01",
|
|
3032
|
+
"maxLength": 10,
|
|
3033
|
+
"minLength": 10,
|
|
3034
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
|
|
3035
|
+
"title": "end_date",
|
|
3036
|
+
"type": "string"
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
],
|
|
3040
|
+
"responses": {
|
|
3041
|
+
"200": {
|
|
3042
|
+
"content": {
|
|
3043
|
+
"application/json": {
|
|
3044
|
+
"schema": {
|
|
3045
|
+
"$ref": "#/components/schemas/GetUsageHistoryResponse"
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
},
|
|
3049
|
+
"description": "Success"
|
|
3050
|
+
},
|
|
3051
|
+
"400": {
|
|
3052
|
+
"$ref": "#/components/responses/BadRequest"
|
|
3053
|
+
},
|
|
3054
|
+
"401": {
|
|
3055
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
3056
|
+
},
|
|
3057
|
+
"403": {
|
|
3058
|
+
"$ref": "#/components/responses/Forbidden"
|
|
3059
|
+
},
|
|
3060
|
+
"404": {
|
|
3061
|
+
"$ref": "#/components/responses/NotFound"
|
|
3062
|
+
},
|
|
3063
|
+
"429": {
|
|
3064
|
+
"$ref": "#/components/responses/RateLimitExceeded"
|
|
3065
|
+
},
|
|
3066
|
+
"500": {
|
|
3067
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
"summary": "Get usage history",
|
|
3071
|
+
"tags": [
|
|
3072
|
+
"Quota"
|
|
3073
|
+
],
|
|
3074
|
+
"x-codeSamples": [
|
|
3075
|
+
{
|
|
3076
|
+
"lang": "typescript",
|
|
3077
|
+
"label": "getUsageHistory",
|
|
3078
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.quota.getUsageHistory({\n organizationId: \"org_01h2xcejqtf2nbrexx3vqjhp41\",\n startDate: \"2026-01-01\",\n endDate: \"2026-02-01\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
3079
|
+
}
|
|
3080
|
+
]
|
|
2634
3081
|
}
|
|
2635
3082
|
},
|
|
2636
3083
|
"/v1beta/versions/{version_id}": {
|
|
@@ -2685,7 +3132,14 @@
|
|
|
2685
3132
|
"tags": [
|
|
2686
3133
|
"Versions"
|
|
2687
3134
|
],
|
|
2688
|
-
"x-speakeasy-name-override": "get"
|
|
3135
|
+
"x-speakeasy-name-override": "get",
|
|
3136
|
+
"x-codeSamples": [
|
|
3137
|
+
{
|
|
3138
|
+
"lang": "typescript",
|
|
3139
|
+
"label": "getVersion",
|
|
3140
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.get({\n versionId: \"\u003cid\u003e\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
3141
|
+
}
|
|
3142
|
+
]
|
|
2689
3143
|
},
|
|
2690
3144
|
"patch": {
|
|
2691
3145
|
"description": "Update version title and description.",
|
|
@@ -2766,7 +3220,14 @@
|
|
|
2766
3220
|
"tags": [
|
|
2767
3221
|
"Versions"
|
|
2768
3222
|
],
|
|
2769
|
-
"x-speakeasy-name-override": "update"
|
|
3223
|
+
"x-speakeasy-name-override": "update",
|
|
3224
|
+
"x-codeSamples": [
|
|
3225
|
+
{
|
|
3226
|
+
"lang": "typescript",
|
|
3227
|
+
"label": "updateVersion",
|
|
3228
|
+
"source": "import { Factify } from \"@factify/sdk\";\n\nconst factify = new Factify({\n bearerAuth: \"\u003cYOUR_BEARER_TOKEN_HERE\u003e\",\n});\n\nasync function run() {\n const result = await factify.versions.update({\n versionId: \"\u003cid\u003e\",\n body: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
3229
|
+
}
|
|
3230
|
+
]
|
|
2770
3231
|
}
|
|
2771
3232
|
}
|
|
2772
3233
|
},
|
|
@@ -2802,6 +3263,10 @@
|
|
|
2802
3263
|
"description": "Generate and manage API keys for authentication.",
|
|
2803
3264
|
"name": "API Keys"
|
|
2804
3265
|
},
|
|
3266
|
+
{
|
|
3267
|
+
"description": "Query API usage and quota information for your organization.",
|
|
3268
|
+
"name": "Quota"
|
|
3269
|
+
},
|
|
2805
3270
|
{
|
|
2806
3271
|
"description": "Attach and manage access policies for documents.",
|
|
2807
3272
|
"name": "Policies"
|