@credal/sdk 0.1.3 → 0.1.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.
Files changed (126) hide show
  1. package/dist/cjs/Client.d.ts +2 -5
  2. package/dist/cjs/Client.js +6 -11
  3. package/dist/cjs/api/resources/{permissionsService/types/Group.d.ts → common/types/CustomMetadataValue.d.ts} +1 -4
  4. package/dist/cjs/api/resources/common/types/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/common/types/index.js +1 -0
  6. package/dist/cjs/api/resources/copilots/client/Client.d.ts +2 -2
  7. package/dist/cjs/api/resources/copilots/client/Client.js +9 -9
  8. package/dist/cjs/api/resources/documentCatalog/client/Client.d.ts +2 -2
  9. package/dist/cjs/api/resources/documentCatalog/client/Client.js +3 -3
  10. package/dist/cjs/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.ts +5 -2
  11. package/dist/cjs/api/resources/documentCollections/client/Client.d.ts +2 -2
  12. package/dist/cjs/api/resources/documentCollections/client/Client.js +7 -7
  13. package/dist/cjs/api/resources/index.d.ts +0 -3
  14. package/dist/cjs/api/resources/index.js +1 -4
  15. package/dist/cjs/api/resources/search/client/Client.d.ts +2 -2
  16. package/dist/cjs/api/resources/search/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/users/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  19. package/dist/cjs/core/auth/index.d.ts +2 -2
  20. package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -1
  21. package/dist/cjs/core/fetcher/Fetcher.js +2 -2
  22. package/dist/cjs/core/fetcher/index.d.ts +5 -5
  23. package/dist/cjs/core/fetcher/index.js +5 -5
  24. package/dist/cjs/core/fetcher/requestWithRetries.js +34 -2
  25. package/dist/cjs/core/headers.d.ts +2 -2
  26. package/dist/cjs/version.d.ts +1 -1
  27. package/dist/cjs/version.js +1 -1
  28. package/dist/esm/Client.d.mts +2 -5
  29. package/dist/esm/Client.mjs +2 -7
  30. package/dist/esm/api/resources/{permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.mjs → common/types/CustomMetadataValue.d.mts} +1 -1
  31. package/dist/esm/api/resources/common/types/index.d.mts +1 -0
  32. package/dist/esm/api/resources/common/types/index.mjs +1 -0
  33. package/dist/esm/api/resources/copilots/client/Client.d.mts +2 -2
  34. package/dist/esm/api/resources/copilots/client/Client.mjs +9 -9
  35. package/dist/esm/api/resources/documentCatalog/client/Client.d.mts +2 -2
  36. package/dist/esm/api/resources/documentCatalog/client/Client.mjs +3 -3
  37. package/dist/esm/api/resources/documentCatalog/client/requests/UploadDocumentContentsRequest.d.mts +5 -2
  38. package/dist/esm/api/resources/documentCollections/client/Client.d.mts +2 -2
  39. package/dist/esm/api/resources/documentCollections/client/Client.mjs +7 -7
  40. package/dist/esm/api/resources/index.d.mts +0 -3
  41. package/dist/esm/api/resources/index.mjs +0 -3
  42. package/dist/esm/api/resources/search/client/Client.d.mts +2 -2
  43. package/dist/esm/api/resources/search/client/Client.mjs +1 -1
  44. package/dist/esm/api/resources/users/client/Client.d.mts +2 -2
  45. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  46. package/dist/esm/core/auth/index.d.mts +2 -2
  47. package/dist/esm/core/fetcher/Fetcher.d.mts +1 -1
  48. package/dist/esm/core/fetcher/Fetcher.mjs +2 -2
  49. package/dist/esm/core/fetcher/index.d.mts +5 -5
  50. package/dist/esm/core/fetcher/index.mjs +2 -2
  51. package/dist/esm/core/fetcher/requestWithRetries.mjs +34 -2
  52. package/dist/esm/core/headers.d.mts +2 -2
  53. package/dist/esm/version.d.mts +1 -1
  54. package/dist/esm/version.mjs +1 -1
  55. package/package.json +1 -1
  56. package/reference.md +0 -213
  57. package/dist/cjs/api/resources/permissionsService/client/Client.d.ts +0 -86
  58. package/dist/cjs/api/resources/permissionsService/client/Client.js +0 -260
  59. package/dist/cjs/api/resources/permissionsService/client/index.d.ts +0 -2
  60. package/dist/cjs/api/resources/permissionsService/client/index.js +0 -17
  61. package/dist/cjs/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.ts +0 -26
  62. package/dist/cjs/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.ts +0 -23
  63. package/dist/cjs/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.js +0 -5
  64. package/dist/cjs/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.ts +0 -20
  65. package/dist/cjs/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.js +0 -5
  66. package/dist/cjs/api/resources/permissionsService/client/requests/index.d.ts +0 -3
  67. package/dist/cjs/api/resources/permissionsService/client/requests/index.js +0 -2
  68. package/dist/cjs/api/resources/permissionsService/index.d.ts +0 -2
  69. package/dist/cjs/api/resources/permissionsService/index.js +0 -18
  70. package/dist/cjs/api/resources/permissionsService/types/Action.d.ts +0 -7
  71. package/dist/cjs/api/resources/permissionsService/types/Action.js +0 -9
  72. package/dist/cjs/api/resources/permissionsService/types/AuthorizedResource.d.ts +0 -8
  73. package/dist/cjs/api/resources/permissionsService/types/AuthorizedResource.js +0 -5
  74. package/dist/cjs/api/resources/permissionsService/types/AuthorizedResourceListPage.d.ts +0 -5
  75. package/dist/cjs/api/resources/permissionsService/types/AuthorizedResourceListPage.js +0 -5
  76. package/dist/cjs/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.ts +0 -5
  77. package/dist/cjs/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.js +0 -5
  78. package/dist/cjs/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.d.ts +0 -6
  79. package/dist/cjs/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.js +0 -5
  80. package/dist/cjs/api/resources/permissionsService/types/Group.js +0 -5
  81. package/dist/cjs/api/resources/permissionsService/types/Principal.d.ts +0 -13
  82. package/dist/cjs/api/resources/permissionsService/types/Principal.js +0 -5
  83. package/dist/cjs/api/resources/permissionsService/types/PrincipalListPage.d.ts +0 -8
  84. package/dist/cjs/api/resources/permissionsService/types/PrincipalListPage.js +0 -5
  85. package/dist/cjs/api/resources/permissionsService/types/ResourceAuthorizationResult.d.ts +0 -9
  86. package/dist/cjs/api/resources/permissionsService/types/ResourceAuthorizationResult.js +0 -5
  87. package/dist/cjs/api/resources/permissionsService/types/User.d.ts +0 -8
  88. package/dist/cjs/api/resources/permissionsService/types/User.js +0 -5
  89. package/dist/cjs/api/resources/permissionsService/types/index.d.ts +0 -10
  90. package/dist/cjs/api/resources/permissionsService/types/index.js +0 -26
  91. package/dist/esm/api/resources/permissionsService/client/Client.d.mts +0 -86
  92. package/dist/esm/api/resources/permissionsService/client/Client.mjs +0 -223
  93. package/dist/esm/api/resources/permissionsService/client/index.d.mts +0 -2
  94. package/dist/esm/api/resources/permissionsService/client/index.mjs +0 -1
  95. package/dist/esm/api/resources/permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.d.mts +0 -26
  96. package/dist/esm/api/resources/permissionsService/client/requests/CheckResourceAuthorizationForUserRequest.d.mts +0 -23
  97. package/dist/esm/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.d.mts +0 -20
  98. package/dist/esm/api/resources/permissionsService/client/requests/ListCachedAuthorizedResourcesForUserRequest.mjs +0 -4
  99. package/dist/esm/api/resources/permissionsService/client/requests/index.d.mts +0 -3
  100. package/dist/esm/api/resources/permissionsService/client/requests/index.mjs +0 -1
  101. package/dist/esm/api/resources/permissionsService/index.d.mts +0 -2
  102. package/dist/esm/api/resources/permissionsService/index.mjs +0 -2
  103. package/dist/esm/api/resources/permissionsService/types/Action.d.mts +0 -7
  104. package/dist/esm/api/resources/permissionsService/types/Action.mjs +0 -6
  105. package/dist/esm/api/resources/permissionsService/types/AuthorizedResource.d.mts +0 -8
  106. package/dist/esm/api/resources/permissionsService/types/AuthorizedResource.mjs +0 -4
  107. package/dist/esm/api/resources/permissionsService/types/AuthorizedResourceListPage.d.mts +0 -5
  108. package/dist/esm/api/resources/permissionsService/types/AuthorizedResourceListPage.mjs +0 -4
  109. package/dist/esm/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.d.mts +0 -5
  110. package/dist/esm/api/resources/permissionsService/types/CheckBulkResourcesAuthorizationResponse.mjs +0 -4
  111. package/dist/esm/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.d.mts +0 -6
  112. package/dist/esm/api/resources/permissionsService/types/CheckResourceAuthorizationResponse.mjs +0 -4
  113. package/dist/esm/api/resources/permissionsService/types/Group.d.mts +0 -7
  114. package/dist/esm/api/resources/permissionsService/types/Group.mjs +0 -4
  115. package/dist/esm/api/resources/permissionsService/types/Principal.d.mts +0 -13
  116. package/dist/esm/api/resources/permissionsService/types/Principal.mjs +0 -4
  117. package/dist/esm/api/resources/permissionsService/types/PrincipalListPage.d.mts +0 -8
  118. package/dist/esm/api/resources/permissionsService/types/PrincipalListPage.mjs +0 -4
  119. package/dist/esm/api/resources/permissionsService/types/ResourceAuthorizationResult.d.mts +0 -9
  120. package/dist/esm/api/resources/permissionsService/types/ResourceAuthorizationResult.mjs +0 -4
  121. package/dist/esm/api/resources/permissionsService/types/User.d.mts +0 -8
  122. package/dist/esm/api/resources/permissionsService/types/User.mjs +0 -4
  123. package/dist/esm/api/resources/permissionsService/types/index.d.mts +0 -10
  124. package/dist/esm/api/resources/permissionsService/types/index.mjs +0 -10
  125. /package/dist/cjs/api/resources/{permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.js → common/types/CustomMetadataValue.js} +0 -0
  126. /package/dist/esm/api/resources/{permissionsService/client/requests/CheckBulkResourcesAuthorizationForUserRequest.mjs → common/types/CustomMetadataValue.mjs} +0 -0
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type Action = "READ";
5
- export declare const Action: {
6
- readonly Read: "READ";
7
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export const Action = {
5
- Read: "READ",
6
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export interface AuthorizedResource {
6
- credalId: string;
7
- externalId: Credal.ExternalResourceId;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export type AuthorizedResourceListPage = Credal.AuthorizedResource[];
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export type CheckBulkResourcesAuthorizationResponse = Credal.ResourceAuthorizationResult[];
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface CheckResourceAuthorizationResponse {
5
- authorized: boolean;
6
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface Group {
5
- name: string;
6
- id?: string;
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export type Principal = Credal.Principal.Group | Credal.Principal.User;
6
- export declare namespace Principal {
7
- interface Group extends Credal.Group {
8
- type: "group";
9
- }
10
- interface User extends Credal.User {
11
- type: "user";
12
- }
13
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export interface PrincipalListPage {
6
- principals: Credal.Principal[];
7
- nextPageToken?: string;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Credal from "../../../index.mjs";
5
- export interface ResourceAuthorizationResult {
6
- externalResourceId: Credal.ExternalResourceId;
7
- inputUrl?: string;
8
- authorized: boolean;
9
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface User {
5
- email: string;
6
- name?: string;
7
- id?: string;
8
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export {};
@@ -1,10 +0,0 @@
1
- export * from "./Group.mjs";
2
- export * from "./User.mjs";
3
- export * from "./Principal.mjs";
4
- export * from "./AuthorizedResource.mjs";
5
- export * from "./AuthorizedResourceListPage.mjs";
6
- export * from "./PrincipalListPage.mjs";
7
- export * from "./CheckResourceAuthorizationResponse.mjs";
8
- export * from "./ResourceAuthorizationResult.mjs";
9
- export * from "./CheckBulkResourcesAuthorizationResponse.mjs";
10
- export * from "./Action.mjs";
@@ -1,10 +0,0 @@
1
- export * from "./Group.mjs";
2
- export * from "./User.mjs";
3
- export * from "./Principal.mjs";
4
- export * from "./AuthorizedResource.mjs";
5
- export * from "./AuthorizedResourceListPage.mjs";
6
- export * from "./PrincipalListPage.mjs";
7
- export * from "./CheckResourceAuthorizationResponse.mjs";
8
- export * from "./ResourceAuthorizationResult.mjs";
9
- export * from "./CheckBulkResourcesAuthorizationResponse.mjs";
10
- export * from "./Action.mjs";